disable mob casting
This commit is contained in:
@@ -48,18 +48,19 @@ public class MobAI {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.getObjectType() == Enum.GameObjectType.PlayerCharacter && canCast(mob)) {
|
//mob casting disabled
|
||||||
|
//if (target.getObjectType() == Enum.GameObjectType.PlayerCharacter && canCast(mob)) {
|
||||||
|
|
||||||
if (mob.isPlayerGuard() == false && MobCast(mob)) {
|
//if (mob.isPlayerGuard() == false && MobCast(mob)) {
|
||||||
mob.updateLocation();
|
// mob.updateLocation();
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (mob.isPlayerGuard() == true && GuardCast(mob)) {
|
//if (mob.isPlayerGuard() == true && GuardCast(mob)) {
|
||||||
mob.updateLocation();
|
// mob.updateLocation();
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (!CombatUtilities.inRangeToAttack(mob, target))
|
if (!CombatUtilities.inRangeToAttack(mob, target))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user