Fix Shaman T10 Enhancement 4P Bonus
Signed-off-by: dr.skull <[email protected]>
This commit is contained in:
@@ -8938,18 +8938,17 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg
|
|||||||
// Maelstrom Weapon
|
// Maelstrom Weapon
|
||||||
case 53817:
|
case 53817:
|
||||||
{
|
{
|
||||||
// Item - Shaman T10 Enhancement 4P Bonus
|
|
||||||
if (AuraEffect const* aurEff = GetAuraEffect(70832, 0))
|
|
||||||
if (Aura const* maelstrom = GetAura(53817))
|
|
||||||
if ((maelstrom->GetStackAmount() == maelstrom->GetSpellInfo()->StackAmount) && roll_chance_i(aurEff->GetAmount()))
|
|
||||||
CastSpell(this, 70831, true, castItem, triggeredByAura);
|
|
||||||
|
|
||||||
// has rank dependant proc chance, ignore too often cases
|
// has rank dependant proc chance, ignore too often cases
|
||||||
// PPM = 2.5 * (rank of talent),
|
// PPM = 2.5 * (rank of talent),
|
||||||
uint32 rank = auraSpellInfo->GetRank();
|
uint32 rank = auraSpellInfo->GetRank();
|
||||||
// 5 rank -> 100% 4 rank -> 80% and etc from full rate
|
// 5 rank -> 100% 4 rank -> 80% and etc from full rate
|
||||||
if (!roll_chance_i(20*rank))
|
if (!roll_chance_i(20*rank))
|
||||||
return false;
|
return false;
|
||||||
|
// Item - Shaman T10 Enhancement 4P Bonus
|
||||||
|
if (AuraEffect const* aurEff = GetAuraEffect(70832, 0))
|
||||||
|
if (Aura const* maelstrom = GetAura(53817))
|
||||||
|
if ((maelstrom->GetStackAmount() == maelstrom->GetSpellInfo()->StackAmount - 1) && roll_chance_i(aurEff->GetAmount()))
|
||||||
|
CastSpell(this, 70831, true, castItem, triggeredByAura);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Astral Shift
|
// Astral Shift
|
||||||
|
|||||||
Reference in New Issue
Block a user