Esempio n. 1
0
        public override void DoEffect(BaseCreature creature, Mobile m)
        {
            var def = AuraDefinition.GetDefinition(creature);

            if (def.Damage > 0)
            {
                AOS.Damage(
                    m,
                    creature,
                    def.Damage,
                    def.Physical,
                    def.Fire,
                    def.Cold,
                    def.Poison,
                    def.Energy,
                    def.Chaos,
                    def.Direct,
                    DamageType.SpellAOE);

                m.RevealingAction();
            }

            if (creature is IAuraCreature)
            {
                ((IAuraCreature)creature).AuraEffect(m);
            }
        }
Esempio n. 2
0
        public override void DoEffect(BaseCreature creature, Mobile m)
        {
            AuraDefinition def = AuraDefinition.GetDefinition(creature);

            if (def.Damage > 0)
            {
                AOS.Damage(
                    m,
                    creature,
                    def.Damage,
                    def.Physical,
                    def.Fire,
                    def.Cold,
                    def.Poison,
                    def.Energy,
                    def.Chaos,
                    def.Direct,
                    DamageType.SpellAOE);

                creature.DoHarmful(m); // Need to re-look at this.
                m.RevealingAction();
            }

            if (creature is IAuraCreature auraCreature)
            {
                auraCreature.AuraEffect(m);
            }
        }
Esempio n. 3
0
 public override TimeSpan GetCooldown(BaseCreature bc)
 {
     return(AuraDefinition.GetDefinition(bc).Cooldown);
 }