mele attack null checks

This commit is contained in:
2025-02-26 06:54:46 -06:00
parent 16a0b9c0e3
commit 97b2af52b9
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -133,6 +133,9 @@ public class MobAI {
if (mob.isMoving() && mob.getRange() > 20)
return;
if(target.combatStats == null)
target.combatStats = new PlayerCombatStats(target);
// add timer for last attack.
ItemBase mainHand = mob.getWeaponItemBase(true);