trebuchets now have pet AI with canRoam disabled

This commit is contained in:
2023-04-21 20:12:49 -05:00
parent 3329d61636
commit 45ab68caa4
4 changed files with 14 additions and 7 deletions
@@ -115,6 +115,9 @@ public class CombatUtilities {
DispatchMessage.sendToAllInRange(agent,msg);
}
public static void swingIsDamage(Mob agent, AbstractWorldObject target, float damage, int animation){
if(agent.isSiege() == true){
damage = ThreadLocalRandom.current().nextInt(1000) + 1500;
}
float trueDamage = damage;
//target = agent.getCombatTarget();
if (!target.isAlive())