mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make potion sickness's healing multiplier only affect potions.
This commit is contained in:
parent
060b8cc0ec
commit
dc6e61983c
@ -362,7 +362,7 @@ fn execute_effect(
|
|||||||
DamageContributor::new(uid, read_data.groups.get(entity).cloned())
|
DamageContributor::new(uid, read_data.groups.get(entity).cloned())
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
if amount > 0.0 {
|
if amount > 0.0 && matches!(buff_kind, BuffKind::Potion) {
|
||||||
amount *= stat.heal_multiplier;
|
amount *= stat.heal_multiplier;
|
||||||
}
|
}
|
||||||
server_emitter.emit(ServerEvent::HealthChange {
|
server_emitter.emit(ServerEvent::HealthChange {
|
||||||
|
Loading…
Reference in New Issue
Block a user