Core/Spells: Fixed misdirection ability of hunters to end 4 seconds after first damage proc - fixes #114
This commit is contained in:
@@ -6598,6 +6598,13 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// Misdirection
|
||||
if (dummySpell->Id == 34477)
|
||||
{
|
||||
triggered_spell_id = 35079; // 4 sec buff on self
|
||||
target = this;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PALADIN:
|
||||
|
||||
@@ -4965,9 +4965,16 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
}
|
||||
break;
|
||||
case SPELLFAMILY_HUNTER:
|
||||
// Misdirection
|
||||
if (GetId() == 34477)
|
||||
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)
|
||||
|
||||
@@ -3063,6 +3063,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
case 57761: // Fireball!
|
||||
case 39805: // Lightning Overload
|
||||
case 64823: // Item - Druid T8 Balance 4P Bonus
|
||||
case 34477: // Misdirection
|
||||
case 44401: // Missile Barrage
|
||||
spellInfo->procCharges = 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user