Example #1
0
            public override void OnAttack(DamageAction action)
            {
                if (action.SpellEffect != null && action.Victim.AuraState.HasAnyFlag(AuraStateMask.Frozen))
                {
                    switch (m_aura.Spell.SpellId)
                    {
                    case SpellId.MageFrostShatterRank1:
                        action.AddBonusCritChance(17);
                        break;

                    case SpellId.MageFrostShatterRank2:
                        action.AddBonusCritChance(34);
                        break;

                    case SpellId.MageFrostShatterRank3:
                        action.AddBonusCritChance(50);
                        break;
                    }
                }
            }