mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[10636] Implement server side check combo points req. for spell cast.
Thanks to nos4r2zod for problem research.
This commit is contained in:
parent
7a26fdd45d
commit
691412d05c
7 changed files with 35 additions and 29 deletions
|
|
@ -6261,8 +6261,8 @@ void Aura::HandleAuraRetainComboPoints(bool apply, bool Real)
|
|||
|
||||
// combo points was added in SPELL_EFFECT_ADD_COMBO_POINTS handler
|
||||
// remove only if aura expire by time (in case combo points amount change aura removed without combo points lost)
|
||||
if( !apply && m_removeMode == AURA_REMOVE_BY_EXPIRE && target->GetComboTarget())
|
||||
if(Unit* unit = ObjectAccessor::GetUnit(*GetTarget(),target->GetComboTarget()))
|
||||
if (!apply && m_removeMode == AURA_REMOVE_BY_EXPIRE && !target->GetComboTargetGuid().IsEmpty())
|
||||
if (Unit* unit = ObjectAccessor::GetUnit(*GetTarget(),target->GetComboTargetGuid()))
|
||||
target->AddComboPoints(unit, -m_modifier.m_amount);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue