예제 #1
0
        public void HarmfulSpell(IDamageable d)
        {
            if (d is BaseCreature)
            {
                ((BaseCreature)d).OnHarmfulSpell(m_Caster);
            }
            else if (d is IDamageableItem)
            {
                ((IDamageableItem)d).OnHarmfulSpell(m_Caster);
            }

            NegativeAttributes.OnCombatAction(Caster);

            if (d is Mobile)
            {
                if ((Mobile)d != m_Caster)
                {
                    NegativeAttributes.OnCombatAction((Mobile)d);
                }

                EvilOmenSpell.TryEndEffect((Mobile)d);
            }
        }
예제 #2
0
파일: Spell.cs 프로젝트: tflynt91/TrueUO
        public void HarmfulSpell(IDamageable d)
        {
            if (d is BaseCreature creature)
            {
                creature.OnHarmfulSpell(m_Caster);
            }
            else if (d is IDamageableItem item)
            {
                item.OnHarmfulSpell(m_Caster);
            }

            NegativeAttributes.OnCombatAction(Caster);

            if (d is Mobile mobile)
            {
                if (mobile != m_Caster)
                {
                    NegativeAttributes.OnCombatAction(mobile);
                }

                EvilOmenSpell.TryEndEffect(mobile);
            }
        }
예제 #3
0
 public virtual double GetResistSkill(Mobile m)
 {
     return(m.Skills[SkillName.MagicResist].Value - EvilOmenSpell.GetResistMalus(m));
 }
예제 #4
0
 public InternalTarget(EvilOmenSpell owner) : base(12, false, TargetFlags.Harmful)
 {
     m_Owner = owner;
 }