trebuchets now have pet AI with canRoam disabled

This commit is contained in:
FatBoy committed 2023-04-21 20:12:49 -05:00
1 parent 3329d61636
commit 45ab68caa4
4 files changed
+14 -7

No files matched your search

+3 -2
View File
@@ -1458,7 +1458,7 @@ public class NPC extends AbstractCharacter {
mob.setObjectTypeMask(MBServerStatics.MASK_MOB | mob.getTypeMasks());
// mob.setMob();
//mob.setMob();
mob.setSiege(true);
mob.setParentZone(parent);
@@ -1478,7 +1478,8 @@ public class NPC extends AbstractCharacter {
mob.setSpawnTime(10);
mob.setNpcOwner(this);
mob.region = AbstractWorldObject.GetRegionByWorldObject(mob);
mob.BehaviourType = MobBehaviourType.Pet1;
mob.BehaviourType.canRoam = false;
return mob;
}