mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
NPCs should no longer be able to kill you with a projectile fired shortly before or during death
This commit is contained in:
parent
6e804d4e99
commit
bf60a0a658
1 changed files with 2 additions and 1 deletions
|
|
@ -168,7 +168,8 @@ public final class DeathTask extends NodeTask {
|
|||
* @return {@code True} if so.
|
||||
*/
|
||||
public static boolean isDead(Entity e) {
|
||||
return e.getAttribute("state:death", false);
|
||||
if (e instanceof NPC) return ((NPC) e).getRespawnTick() > GameWorld.getTicks() || e.getAttribute("state:death", false);
|
||||
else return e.getAttribute("state:death", false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue