Core/Spells: Cleaned up Shaman 4P Enhancement and Paladin 2P Retribution set bonus code

SQL: Added missing sql for that revision, thx cyberbrest

Closes #12
This commit is contained in:
Shauren
2011-01-02 16:27:38 +01:00
parent a7dadcb51c
commit eec299e605
4 changed files with 9 additions and 10 deletions
+2 -4
View File
@@ -8544,12 +8544,10 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
case 53817:
{
// Item - Shaman T10 Enhancement 4P Bonus
if (AuraEffect * aurEff = ToPlayer()->GetAuraEffect(70832, 0))
{
if (Aura *maelstrom = GetAura(53817))
if (AuraEffect const* aurEff = GetAuraEffect(70832, 0))
if (Aura const* maelstrom = GetAura(53817))
if ((maelstrom->GetStackAmount() == maelstrom->GetSpellProto()->StackAmount) && roll_chance_i(aurEff->GetAmount()))
CastSpell(this, 70831, true, castItem, triggeredByAura);
}
// have rank dependent proc chance, ignore too often cases
// PPM = 2.5 * (rank of talent),