Fixed castle doors not been destroyed.

This commit is contained in:
MobiusDev
2016-12-11 15:56:29 +00:00
parent 27dd07c71a
commit 0fb6404282
2 changed files with 8 additions and 1 deletions

View File

@@ -239,6 +239,10 @@ public final class L2DoorInstance extends L2Character
public int getDamage()
{
if (getCastle() == null)
{
return 0;
}
final int dmg = 6 - (int) Math.ceil((getCurrentHp() / getMaxHp()) * 6);
if (dmg > 6)
{