Core/Creatures: Moved autoattack handling from scripts to game

Port From (https://github.com/TrinityCore/TrinityCore/commit/605e5f94c0d71cad8e83fa5a07eaec4e6bed9cc3)
This commit is contained in:
hondacrx
2024-02-05 18:18:30 -05:00
parent aa696fb176
commit 437fe2d8fd
94 changed files with 192 additions and 358 deletions
-2
View File
@@ -97,8 +97,6 @@ namespace Scripts.Pets.Hunter
else
_spellTimer -= diff;
}
DoMeleeAttackIfReady();
}
}
}
+1 -3
View File
@@ -32,8 +32,6 @@ namespace Scripts.Pets.Shaman
return;
_scheduler.Update(diff);
DoMeleeAttackIfReady();
}
}
@@ -74,7 +72,7 @@ namespace Scripts.Pets.Shaman
if (me.HasUnitState(UnitState.Casting))
return;
_scheduler.Update(diff, DoMeleeAttackIfReady);
_scheduler.Update(diff);
}
}
}