Skip to content

Commit

Permalink
Unit: Accumulate extra attacks up to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 31, 2025
1 parent 186bbea commit 6382658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7874,7 +7874,9 @@ void Spell::EffectAddExtraAttacks(SpellEffectIndex /*eff_idx*/)
if (unitTarget->m_extraAttacks)
return;

unitTarget->m_extraAttacks = damage;
unitTarget->m_extraAttacks += damage;
if (unitTarget->m_extraAttacks > 5)
unitTarget->m_extraAttacks = 5;
unitTarget->m_extraAttackGuid = unitTarget->GetVictim() ? unitTarget->GetVictim()->GetObjectGuid() : ObjectGuid();
m_spellLog.AddLog(uint32(SPELL_EFFECT_ADD_EXTRA_ATTACKS), unitTarget->GetPackGUID(), damage);
}
Expand Down

0 comments on commit 6382658

Please sign in to comment.