Poison immune enemies are now immune to poison
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user