Commit d8d27890 authored by Joe's avatar Joe

Fixes bug when npc kills player due too TDM code

parent 217d1cb2
......@@ -3168,10 +3168,10 @@ public class Player extends Mob {
removeSkull(); // destroy
resetCombatEvent();
this.setLastOpponent(null);
if (!player.getLocation().inTdmArena()) {
if (!getLocation().inTdmArena()) {
getWorld().registerItem(new GroundItem(getWorld(), ItemId.BONES.id(), getX(), getY(), 1, player));
}
if (player.getLocation().inTdmArena()) {
if (getLocation().inTdmArena()) {
this.setLocation(Point.location(DataConversions.random(105, 119), DataConversions.random(9, 24)), true);
} else
if ((!getCache().hasKey("death_location_x") && !getCache().hasKey("death_location_y"))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment