forked from 2009Scape/Server
Poison immune enemies are now immune to poison
This commit is contained in:
parent
dc0a0b1cff
commit
93d2c8f4aa
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue