Lore Guards use charter restrictions when aggroing
This commit is contained in:
@@ -1090,6 +1090,11 @@ public class MobAI {
|
||||
|
||||
try {
|
||||
|
||||
if (ConfigManager.MB_RULESET.getValue().equals("LORE") && target.guild.equals(Guild.getErrantGuild()) == false) {
|
||||
if(mob.guild.charter.equals(target.guild.charter) == true)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (mob.guardedCity.cityOutlaws.contains(target.getObjectUUID()) == true)
|
||||
return true;
|
||||
|
||||
@@ -1213,6 +1218,11 @@ public class MobAI {
|
||||
if (potentialTarget.equals(mob.getCombatTarget()))
|
||||
continue;
|
||||
|
||||
if (ConfigManager.MB_RULESET.getValue().equals("LORE") && potentialTarget.guild.equals(Guild.getErrantGuild()) == false) {
|
||||
if(mob.guild.charter.equals(potentialTarget.guild.charter) == true)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (potentialTarget != null && mob.playerAgroMap.get(potentialTarget.getObjectUUID()).floatValue() > CurrentHateValue && MovementUtilities.inRangeToAggro(mob, potentialTarget)) {
|
||||
CurrentHateValue = mob.playerAgroMap.get(potentialTarget.getObjectUUID()).floatValue();
|
||||
mostHatedTarget = potentialTarget;
|
||||
|
||||
Reference in New Issue
Block a user