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