Core/Spells: Fixed misdirection ability of hunters to end 4 seconds after first damage proc - fixes #114

This commit is contained in:
hacknowledge
2011-09-03 18:26:39 +02:00
committed by QAston
parent f31e676199
commit 9d85446e30
3 changed files with 17 additions and 2 deletions
+7
View File
@@ -6598,6 +6598,13 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
return true; return true;
} }
} }
// Misdirection
if (dummySpell->Id == 34477)
{
triggered_spell_id = 35079; // 4 sec buff on self
target = this;
break;
}
break; break;
} }
case SPELLFAMILY_PALADIN: case SPELLFAMILY_PALADIN:
@@ -4965,10 +4965,17 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
} }
break; break;
case SPELLFAMILY_HUNTER: case SPELLFAMILY_HUNTER:
// Misdirection switch (GetId())
if (GetId() == 34477) {
case 34477: // Misdirection
if (aurApp->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
target->SetReducedThreatPercent(0, 0); target->SetReducedThreatPercent(0, 0);
break; break;
case 35079: // Misdirection proc
target->SetReducedThreatPercent(0, 0);
break;
}
break;
case SPELLFAMILY_DEATHKNIGHT: case SPELLFAMILY_DEATHKNIGHT:
// Summon Gargoyle (Dismiss Gargoyle at remove) // Summon Gargoyle (Dismiss Gargoyle at remove)
if (GetId() == 61777) if (GetId() == 61777)
+1
View File
@@ -3063,6 +3063,7 @@ void SpellMgr::LoadDbcDataCorrections()
case 57761: // Fireball! case 57761: // Fireball!
case 39805: // Lightning Overload case 39805: // Lightning Overload
case 64823: // Item - Druid T8 Balance 4P Bonus case 64823: // Item - Druid T8 Balance 4P Bonus
case 34477: // Misdirection
case 44401: // Missile Barrage case 44401: // Missile Barrage
spellInfo->procCharges = 1; spellInfo->procCharges = 1;
break; break;