Poison immune enemies are now immune to poison

This commit is contained in:
damighty 2025-08-18 13:49:54 +03:00 committed by Ryan
parent dc0a0b1cff
commit 93d2c8f4aa

View file

@ -3034,6 +3034,9 @@ fun applyPoison (entity: Entity, source: Entity, severity: Int) {
if(hasTimerActive<PoisonImmunity>(entity)) {
return
}
if(entity.isPoisonImmune()) {
return
}
val existingTimer = getTimer<Poison>(entity)
if (existingTimer != null) {