mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
[11825] Implement creature offhand attack. based on patch from maxxx2021
also drop some archaic Unit's code
This commit is contained in:
parent
4bd3976e30
commit
70a6a1ce76
9 changed files with 104 additions and 102 deletions
|
|
@ -159,12 +159,8 @@ void PetAI::UpdateAI(const uint32 diff)
|
|||
return;
|
||||
}
|
||||
// not required to be stopped case
|
||||
else if (m_creature->isAttackReady() && meleeReach)
|
||||
else if (DoMeleeAttackIfReady())
|
||||
{
|
||||
m_creature->AttackerStateUpdate(m_creature->getVictim());
|
||||
|
||||
m_creature->resetAttackTimer();
|
||||
|
||||
if (!m_creature->getVictim())
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue