|
|
@ -657,7 +657,7 @@ public class MobAI { |
|
|
|
for (Entry playerEntry : loadedPlayers.entrySet()) { |
|
|
|
for (Entry playerEntry : loadedPlayers.entrySet()) { |
|
|
|
|
|
|
|
|
|
|
|
int playerID = (int) playerEntry.getKey(); |
|
|
|
int playerID = (int) playerEntry.getKey(); |
|
|
|
PlayerCharacter loadedPlayer = PlayerCharacter.getFromCache(playerID); |
|
|
|
PlayerCharacter loadedPlayer = PlayerCharacter.getPlayerCharacter(playerID); |
|
|
|
|
|
|
|
|
|
|
|
//Player is null, let's remove them from the list.
|
|
|
|
//Player is null, let's remove them from the list.
|
|
|
|
|
|
|
|
|
|
|
@ -1105,7 +1105,7 @@ public class MobAI { |
|
|
|
for (Entry playerEntry : loadedPlayers.entrySet()) { |
|
|
|
for (Entry playerEntry : loadedPlayers.entrySet()) { |
|
|
|
|
|
|
|
|
|
|
|
int playerID = (int) playerEntry.getKey(); |
|
|
|
int playerID = (int) playerEntry.getKey(); |
|
|
|
PlayerCharacter loadedPlayer = PlayerCharacter.getFromCache(playerID); |
|
|
|
PlayerCharacter loadedPlayer = PlayerCharacter.getPlayerCharacter(playerID); |
|
|
|
|
|
|
|
|
|
|
|
//Player is null, let's remove them from the list.
|
|
|
|
//Player is null, let's remove them from the list.
|
|
|
|
|
|
|
|
|
|
|
@ -1280,7 +1280,7 @@ public class MobAI { |
|
|
|
|
|
|
|
|
|
|
|
for (Entry playerEntry : mob.playerAgroMap.entrySet()) { |
|
|
|
for (Entry playerEntry : mob.playerAgroMap.entrySet()) { |
|
|
|
|
|
|
|
|
|
|
|
PlayerCharacter potentialTarget = PlayerCharacter.getFromCache((int) playerEntry.getKey()); |
|
|
|
PlayerCharacter potentialTarget = PlayerCharacter.getPlayerCharacter((int) playerEntry.getKey()); |
|
|
|
|
|
|
|
|
|
|
|
if (potentialTarget.equals(mob.getCombatTarget())) |
|
|
|
if (potentialTarget.equals(mob.getCombatTarget())) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|