|
|
|
@ -657,7 +657,7 @@ public class MobAI {
@@ -657,7 +657,7 @@ public class MobAI {
|
|
|
|
|
for (Entry playerEntry : loadedPlayers.entrySet()) { |
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
@ -1105,7 +1105,7 @@ public class MobAI {
@@ -1105,7 +1105,7 @@ public class MobAI {
|
|
|
|
|
for (Entry playerEntry : loadedPlayers.entrySet()) { |
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
@ -1280,7 +1280,7 @@ public class MobAI {
@@ -1280,7 +1280,7 @@ public class MobAI {
|
|
|
|
|
|
|
|
|
|
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())) |
|
|
|
|
continue; |
|
|
|
|