Core/Auras: Removed pointless checks in SPELL_AURA_MOD_THREAT (10)
--HG-- branch : trunk
This commit is contained in:
@@ -3963,17 +3963,9 @@ void AuraEffect::HandleModThreat(AuraApplication const * aurApp, uint8 mode, boo
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Unit * target = aurApp->GetTarget();
|
Unit * target = aurApp->GetTarget();
|
||||||
if (apply && !target->isAlive())
|
for (int32 i = 0; i < MAX_SPELL_SCHOOL; ++i)
|
||||||
return;
|
if (GetMiscValue() & (1 << i))
|
||||||
|
ApplyPercentModFloatVar(target->m_threatModifier[i], float(GetAmount()), apply);
|
||||||
Unit * caster = GetCaster();
|
|
||||||
if (!caster)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
|
||||||
for (int8 x=0; x < MAX_SPELL_SCHOOL; x++)
|
|
||||||
if (GetMiscValue() & int32(1<<x))
|
|
||||||
ApplyPercentModFloatVar(target->m_threatModifier[x], (float)GetAmount(), apply);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AuraEffect::HandleAuraModTotalThreat(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
void AuraEffect::HandleAuraModTotalThreat(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||||
|
|||||||
Reference in New Issue
Block a user