mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Fixed exception occuring when JohnnyBeard dies
This commit is contained in:
parent
32cd17bfa2
commit
876b87b72a
1 changed files with 6 additions and 4 deletions
|
|
@ -43,12 +43,14 @@ public final class JohnnyBeardNPC extends AbstractNPC {
|
|||
@Override
|
||||
public void finalizeDeath(final Entity killer) {
|
||||
super.finalizeDeath(killer);
|
||||
if (killer instanceof Player) {
|
||||
final Player p = ((Player) killer);
|
||||
final Quest quest = p.getQuestRepository().getQuest("Shield of Arrav");
|
||||
if (quest.getStage(p) == 60 && ShieldofArrav.isPhoenixMission(p) && !p.getInventory().containsItem(ShieldofArrav.INTEL_REPORT) && !p.getBank().containsItem(ShieldofArrav.INTEL_REPORT)) {
|
||||
GroundItemManager.create(ShieldofArrav.INTEL_REPORT, getLocation(), p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getIds() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue