Exemplo n.º 1
0
        public virtual void OnCastSuccessful(Mobile caster)
        {
            Evasion.EndEvasion(caster);
            Confidence.EndConfidence(caster);
            CounterAttack.StopCountering(caster);

            var spellID = SpellRegistry.GetRegistryNumber(this);

            if (spellID > 0)
            {
                caster.NetState.SendToggleSpecialAbility(spellID + 1, true);
            }
        }
Exemplo n.º 2
0
        public virtual void OnCastSuccessful(Mobile caster)
        {
            if (Evasion.IsEvading(caster))
            {
                Evasion.EndEvasion(caster);
            }

            if (Confidence.IsConfident(caster))
            {
                Confidence.EndConfidence(caster);
            }

            if (CounterAttack.IsCountering(caster))
            {
                CounterAttack.StopCountering(caster);
            }

            int spellID = SpellRegistry.GetRegistryNumber(this);

            if (spellID > 0)
            {
                caster.Send(new ToggleSpecialAbility(spellID + 1, true));
            }
        }