Make all MA weapons unbreakable (temporary).

This commit is contained in:
Andreas Troelsen 2013-03-21 23:32:35 +01:00
parent dd5924adc1
commit 09d9605bb2

View File

@ -539,6 +539,9 @@ public class ArenaListener
event.setCancelled(true);
return;
}
// Dirty hack for invincible weapons
p.getInventory().getContents()[p.getInventory().getHeldItemSlot()].setDurability((short) 0);
ArenaPlayerStatistics aps = arena.getArenaPlayer(p).getStats();
aps.add("dmgDone", event.getDamage());