Fixed pet talents: Guard Dog and Silverback

Removed pre-3.3.0 code for Improved Cower

Closes issue #3198.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-04 17:49:23 +02:00
parent 6353e7dd8c
commit 362ae2d4c6
3 changed files with 24 additions and 14 deletions
+14 -14
View File
@@ -7717,22 +7717,22 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
}
break;
}
case SPELLFAMILY_PET:
case SPELLFAMILY_PET:
{
// improved cower
if (dummySpell->SpellIconID == 958 && procSpell->SpellIconID == 958)
switch (dummySpell->SpellIconID)
{
triggered_spell_id = dummySpell->Id == 53180 ? 54200 : 54201;
target = this;
break;
}
// guard dog
if (dummySpell->SpellIconID == 201 && procSpell->SpellIconID == 201)
{
triggered_spell_id = 54445;
target = this;
pVictim->AddThreat(this,procSpell->EffectBasePoints[0]*triggerAmount/100.0f);
break;
// Guard Dog
case 201:
triggered_spell_id = 54445;
target = this;
float addThreat = SpellMgr::CalculateSpellEffectAmount(procSpell, 0, this) * triggerAmount / 100.f;
pVictim->AddThreat(this, addThreat);
break;
// Silverback
case 1582:
triggered_spell_id = dummySpell->Id == 62765 ? 62801 : 62800;
target = this;
break;
}
break;
}