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); } }
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); } }
public virtual double GetResistSkill(Mobile m) { return(m.Skills[SkillName.MagicResist].Value - EvilOmenSpell.GetResistMalus(m)); }
public InternalTarget(EvilOmenSpell owner) : base(12, false, TargetFlags.Harmful) { m_Owner = owner; }