1 parent
a20fa23ea6
commit
72cdcbfced
23 files changed
+132
-121
No files matched your search
@@ -3245,7 +3245,7 @@ void Unit::_ApplyAura(AuraApplication * aurApp, uint8 effMask)
|
||||
aura->HandleAuraSpecificMods(aurApp, caster, true, false);
|
||||
|
||||
// apply effects of the aura
|
||||
for (uint8 i = 0 ; i < MAX_SPELL_EFFECTS; ++i)
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
{
|
||||
if (effMask & 1<<i && (!aurApp->GetRemoveMode()))
|
||||
aurApp->_HandleEffect(i, true);
|
||||
@@ -3304,7 +3304,7 @@ void Unit::_UnapplyAura(AuraApplicationMap::iterator &i, AuraRemoveMode removeMo
|
||||
aura->_UnapplyForTarget(this, caster, aurApp);
|
||||
|
||||
// remove effects of the spell - needs to be done after removing aura from lists
|
||||
for (uint8 itr = 0 ; itr < MAX_SPELL_EFFECTS; ++itr)
|
||||
for (uint8 itr = 0; itr < MAX_SPELL_EFFECTS; ++itr)
|
||||
{
|
||||
if (aurApp->HasEffect(itr))
|
||||
aurApp->_HandleEffect(itr, false);
|
||||
@@ -3481,7 +3481,7 @@ void Unit::RemoveAura(AuraApplication * aurApp, AuraRemoveMode mode)
|
||||
if (aurApp->GetRemoveMode())
|
||||
{
|
||||
// remove remaining effects of an aura
|
||||
for (uint8 itr = 0 ; itr < MAX_SPELL_EFFECTS; ++itr)
|
||||
for (uint8 itr = 0; itr < MAX_SPELL_EFFECTS; ++itr)
|
||||
{
|
||||
if (aurApp->HasEffect(itr))
|
||||
aurApp->_HandleEffect(itr, false);
|
||||
|
||||
Reference in new issue
Block a user