disable mob casting

This commit is contained in:
2025-02-03 20:21:50 -06:00
parent afbe23fc03
commit 76db3e1f96
+11 -10
View File
@@ -48,18 +48,19 @@ public class MobAI {
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)) {
mob.updateLocation();
return;
}
//if (mob.isPlayerGuard() == false && MobCast(mob)) {
// mob.updateLocation();
// return;
//}
if (mob.isPlayerGuard() == true && GuardCast(mob)) {
mob.updateLocation();
return;
}
}
//if (mob.isPlayerGuard() == true && GuardCast(mob)) {
// mob.updateLocation();
// return;
//}
//}
if (!CombatUtilities.inRangeToAttack(mob, target))
return;