Core/Spells: Fix Misdirection (thx to elron) closes #5869, #4343

This commit is contained in:
Kandera
2012-03-26 11:37:03 -04:00
parent b1ca1ee5ec
commit 7b357a5028
3 changed files with 61 additions and 13 deletions
+3 -1
View File
@@ -6608,9 +6608,11 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
{
case 34477: // Misdirection
{
if (!GetMisdirectionTarget())
return false;
triggered_spell_id = 35079; // 4 sec buff on self
target = this;
return true;
break;
}
case 57870: // Glyph of Mend Pet
{
@@ -4948,18 +4948,6 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
}
}
break;
case SPELLFAMILY_HUNTER:
switch (GetId())
{
case 34477: // Misdirection
if (aurApp->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
target->SetReducedThreatPercent(0, 0);
break;
case 35079: // Misdirection proc
target->SetReducedThreatPercent(0, 0);
break;
}
break;
case SPELLFAMILY_DEATHKNIGHT:
// Summon Gargoyle (Dismiss Gargoyle at remove)
if (GetId() == 61777)