mele attack null checks

This commit is contained in:
FatBoy committed 2025-02-26 06:54:46 -06:00
1 parent 16a0b9c0e3
commit 97b2af52b9
2 files changed
+6 -3

No files matched your search

+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);