|
|
@ -1809,7 +1809,13 @@ public abstract class AbstractCharacter extends AbstractWorldObject { |
|
|
|
//handle hate value addition
|
|
|
|
//handle hate value addition
|
|
|
|
Mob target = (Mob) this; |
|
|
|
Mob target = (Mob) this; |
|
|
|
if (attacker.getObjectType().equals(GameObjectType.PlayerCharacter)) { |
|
|
|
if (attacker.getObjectType().equals(GameObjectType.PlayerCharacter)) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(target.playerAgroMap.containsKey(attacker.getObjectUUID())) |
|
|
|
target.playerAgroMap.put(attacker.getObjectUUID(), target.playerAgroMap.get(attacker.getObjectUUID()) + value); |
|
|
|
target.playerAgroMap.put(attacker.getObjectUUID(), target.playerAgroMap.get(attacker.getObjectUUID()) + value); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
target.playerAgroMap.put(attacker.getObjectUUID(), value); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (target.isPlayerGuard()) { |
|
|
|
if (target.isPlayerGuard()) { |
|
|
|
if (target.guardedCity != null && target.guardedCity.cityOutlaws.contains(attacker.getObjectUUID()) == false) |
|
|
|
if (target.guardedCity != null && target.guardedCity.cityOutlaws.contains(attacker.getObjectUUID()) == false) |
|
|
|
target.guardedCity.cityOutlaws.add(attacker.getObjectUUID()); |
|
|
|
target.guardedCity.cityOutlaws.add(attacker.getObjectUUID()); |
|
|
|