Minor Attackable class cleanup.
This commit is contained in:
@@ -320,8 +320,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)
|
||||
{
|
||||
@@ -1796,12 +1796,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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user