inLined single line methods for code clarity.
This commit is contained in:
@@ -48,7 +48,7 @@ public class CharmPowerAction extends AbstractPowerAction {
|
||||
|
||||
//verify is mob, not pet or guard
|
||||
Mob mob = (Mob) awo;
|
||||
if (!mob.isMob())
|
||||
if (!(mob.agentType.equals(Enum.AIAgentType.MOBILE)))
|
||||
return;
|
||||
|
||||
//make sure mob isn't too high level
|
||||
|
||||
@@ -97,7 +97,7 @@ public class CreateMobPowerAction extends AbstractPowerAction {
|
||||
|
||||
//currentPet.disableIntelligence();
|
||||
} else if (currentPet != null && currentPet.isSiege()) {
|
||||
currentPet.setMob();
|
||||
currentPet.agentType = Enum.AIAgentType.MOBILE;
|
||||
currentPet.setOwner(null);
|
||||
currentPet.setCombatTarget(null);
|
||||
|
||||
@@ -124,7 +124,7 @@ public class CreateMobPowerAction extends AbstractPowerAction {
|
||||
//currentPet.disableIntelligence();
|
||||
} else {
|
||||
if (currentPet.isSiege()) {
|
||||
currentPet.setMob();
|
||||
currentPet.agentType = Enum.AIAgentType.MOBILE;
|
||||
currentPet.setOwner(null);
|
||||
currentPet.setCombatTarget(null);
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public class FearPowerAction extends AbstractPowerAction {
|
||||
|
||||
//verify is mob, not pet or guard
|
||||
Mob mob = (Mob) awo;
|
||||
if (!mob.isMob())
|
||||
if (!(mob.agentType.equals(Enum.AIAgentType.MOBILE)))
|
||||
return;
|
||||
|
||||
//make sure mob isn't too high level
|
||||
|
||||
Reference in New Issue
Block a user