Minor Attackable class cleanup.

This commit is contained in:
MobiusDevelopment
2022-01-06 21:18:55 +00:00
parent e4d6b3190f
commit eb59d00dac
25 changed files with 121 additions and 152 deletions

View File

@@ -322,8 +322,8 @@ public class Attackable extends Npc
static class PartyContainer
{
Party party;
long damage = 0L;
public Party party;
public long damage;
public PartyContainer(Party party, long damage)
{
@@ -1809,12 +1809,11 @@ public class Attackable extends Npc
if (object == null)
{
final WorldObject target = getTarget();
final Map<Creature, AggroInfo> aggroList = _aggroList;
if ((target != null) && (aggroList != null))
if (target != null)
{
aggroList.remove(target);
_aggroList.remove(target);
}
if ((aggroList != null) && aggroList.isEmpty())
if (_aggroList.isEmpty())
{
if (getAI() instanceof AttackableAI)
{