forked from MagicBane/Server
mobs will attack player pets
This commit is contained in:
@@ -106,6 +106,11 @@ public class MobAI {
|
||||
return;
|
||||
}
|
||||
|
||||
if(target.getPet() != null && target.getPet().isAlive()){
|
||||
mob.setCombatTarget(target.getPet());
|
||||
return;
|
||||
}
|
||||
|
||||
if (mob.BehaviourType.callsForHelp)
|
||||
MobCallForHelp(mob);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user