protected override bool ProcessTarget() { Targeting.Target t = m_Mobile.Target; if (t == null) { return(false); } if (t is HailStormSpell.InternalTarget || t is NetherCycloneSpell.InternalTarget) { if (m_Mobile.Combatant != null && m_Mobile.InRange(m_Mobile.Combatant.Location, 8)) { t.Invoke(m_Mobile, m_Mobile.Combatant); } else { t.Invoke(m_Mobile, m_Mobile); } return(true); } return(base.ProcessTarget()); }
public override bool CheckTarget(Mobile from, Targeting.Target targ, object targeted) { // is there a better way to do this? if (targ.GetType().FullName == "Server.Spells.Second.MagicTrapSpell+InternalTarget") { if (SpellHelper.CheckCombat(from, true)) { // send no combat message from.SendMessage("You cannot trap this while in combat."); return(false); } else { return(true); } } return(base.CheckTarget(from, targ, targeted)); }
protected override bool ProcessTarget() { Targeting.Target t = m_Mobile.Target; if (t is WildfireSpell.InternalTarget) { if (m_Mobile.Combatant != null && m_Mobile.InRange(m_Mobile.Combatant.Location, 8)) { t.Invoke(m_Mobile, m_Mobile.Combatant); } else { t.Invoke(m_Mobile, m_Mobile); } return(true); } return(base.ProcessTarget()); }
public override bool OnTarget(Mobile m, Targeting.Target t, object o) { return(base.OnTarget(m, t, o)); }
public override bool CheckTarget(Mobile from, Targeting.Target targ, object targeted) { return(false); }