Fixing hasty commit.

This commit is contained in:
MobiusDevelopment 2019-11-23 02:08:18 +00:00
parent e111599ee8
commit e886014a4c
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Rate Settings # Karma Settings
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Minimum player karma. # Minimum player karma.

View File

@ -870,14 +870,14 @@ public class PlayerInstance extends Creature
} }
@Override @Override
public void reduceCurrentHp(int ammount, Creature attacker) public void reduceCurrentHp(int amount, Creature attacker)
{ {
if (isInvul()) if (isInvul())
{ {
return; return;
} }
super.reduceCurrentHp(ammount, attacker); super.reduceCurrentHp(amount, attacker);
if (isDead() && (getPet() != null)) if (isDead() && (getPet() != null))
{ {
getPet().unSummon(this); getPet().unSummon(this);
@ -899,7 +899,7 @@ public class PlayerInstance extends Creature
{ {
smsg.addString(attacker.getName()); smsg.addString(attacker.getName());
} }
smsg.addNumber(ammount); smsg.addNumber(amount);
sendPacket(smsg); sendPacket(smsg);
if (!isDead()) if (!isDead())