public InternalTarget(HarmSpell owner) : base(Core.ML ? 10 : 12, false, TargetFlags.Harmful) { this.m_Owner = owner; }
public InternalTarget(HarmSpell owner) : base(12, false, TargetFlags.Harmful) { m_Owner = owner; }
public InternalTarget( HarmSpell owner ) : base( 12, false, TargetFlags.Harmful ) { m_Owner = owner; }
public virtual Spell DoCombo(Mobile c) { Spell spell = null; if (m_Combo == 0) { //m_Mobile.Say( "combo phase 0" ); spell = new ExplosionSpell(m_Mobile, null); ++m_Combo; // Move to next spell } else if (m_Combo == 1) { //m_Mobile.Say( "combo phase 1" ); spell = new ExplosionSpell(m_Mobile, null); ++m_Combo; // Move to next spell } else if (m_Combo == 2) { //m_Mobile.Say( "combo phase 2" ); if (!c.Poisoned) spell = new PoisonSpell(m_Mobile, null); ++m_Combo; // Move to next spell } else if (m_Combo == 3) { //m_Mobile.Say( "combo phase 3" ); if (c.Poisoned) spell = new WeakenSpell(m_Mobile, null); if (!c.Poisoned) spell = new PoisonSpell(m_Mobile, null); ++m_Combo; // Move to next spell } else if (m_Combo == 4) { // m_Mobile.Say( "combo phase 4 ebolt" ); spell = new EnergyBoltSpell(m_Mobile, null); ++m_Combo; // Move to next spell } else if (m_Combo == 5) { //m_Mobile.Say( "combo phase 5" ); if (c.Poisoned && c.Alive) { spell = new HarmSpell(m_Mobile, null); m_Combo = 5; // Move to next spell } if (!c.Poisoned) { if (m_Mobile.Mana > 20) spell = new EnergyBoltSpell(m_Mobile, null); if (m_Mobile.Mana < 19) spell = new LightningSpell(m_Mobile, null); m_Combo = -1; // Reset combo state } } return spell; }
public InternalTarget(HarmSpell owner) : base(owner.Caster.EraML ? 10 : 12, false, TargetFlags.Harmful) { m_Owner = owner; }
public InternalSphereTarget(HarmSpell owner) : base(Core.ML ? 10 : 12, false, TargetFlags.Harmful) { m_Owner = owner; m_Owner.Caster.SendAsciiMessage("Select target..."); }
public void ChargedAbilityAttack( Mobile attacker, Mobile defender ) { if ( m_AbilityCharges <= 0 ) return; AbilitySpell m_Spell = null; Mobile dummy = DummyCaster; switch ( m_ChargedAbility ) { case WeaponChargedAbility.Clumsiness: m_Spell = new ClumsySpell( dummy, null ); break; case WeaponChargedAbility.Feeblemindedness: m_Spell = new FeeblemindSpell( dummy, null ); break; case WeaponChargedAbility.Weakness: m_Spell = new WeakenSpell( dummy, null ); break; case WeaponChargedAbility.Burning : m_Spell = new MagicArrowSpell( dummy, null ); break; case WeaponChargedAbility.Wounding: m_Spell = new HarmSpell( dummy, null ); break; case WeaponChargedAbility.DragonsBreath: case WeaponChargedAbility.DaemonsBreath: m_Spell = new FireballSpell( dummy, null ); break; case WeaponChargedAbility.Thunder: m_Spell = new LightningSpell( dummy, null ); break; case WeaponChargedAbility.MagesBane: m_Spell = new ManaDrainSpell( dummy, null ); break; case WeaponChargedAbility.GhoulsTouch: m_Spell = new ParalyzeSpell( dummy, null ); break; case WeaponChargedAbility.Evil: m_Spell = new CurseSpell( dummy, null ); break; } if ( m_Spell != null ) { m_Spell.OnHit( attacker, defender ); m_AbilityCharges--; } dummy.Delete(); }
public override Spell DoCombo(Mobile c) { //m_Mobile.Say("doing human AI combo"); if (c is PlayerMobile && SmartAI && (c.Spell is MagicTrapSpell || c.Spell is MagicArrowSpell)) { m_EnemyCountersPara = true; } Spell spell = null; if (Combo == 0) { //m_Mobile.Say( "combo phase 1" ); spell = new ExplosionSpell(m_Mobile, null); ++Combo; // Move to next spell } if (Combo == 1) { //m_Mobile.Say( "combo phase 1" ); spell = new ExplosionSpell(m_Mobile, null); ++Combo; // Move to next spell } else if (Combo == 2) { //m_Mobile.Say( "combo phase 2" ); if (!c.Poisoned && (CheckCanPoison(c))) spell = new PoisonSpell(m_Mobile, null); ++Combo; // Move to next spell } else if (Combo == 3) { //m_Mobile.Say( "combo phase 3" ); if (c.Poisoned || !CheckCanPoison(c)) spell = new WeakenSpell(m_Mobile, null); if (!c.Poisoned && (CheckCanPoison(c))) spell = new PoisonSpell(m_Mobile, null); ++Combo; // Move to next spell } else if (Combo == 4) { // m_Mobile.Say( "combo phase 4 ebolt" ); if (!c.Poisoned && (CheckCanPoison(c))) { spell = new PoisonSpell(m_Mobile, null); Combo = 4; } else spell = new EnergyBoltSpell(m_Mobile, null); ++Combo; // Move to next spell } else if (Combo == 5) { //m_Mobile.Say( "combo phase 5" ); if (c.Poisoned) { if (c.Hits < 20 && m_Mobile.Mana >= 20) spell = new EnergyBoltSpell(m_Mobile, null); else spell = new HarmSpell(m_Mobile, null); Combo = 5; // Move to next spell } if (!c.Poisoned) { if (m_Mobile.Mana > 20) spell = new EnergyBoltSpell(m_Mobile, null); if (m_Mobile.Mana < 19) spell = new LightningSpell(m_Mobile, null); Combo = -1; // Reset combo state } } return spell; }
public InternalSphereTarget(HarmSpell owner) : base(Core.ML ? 10 : 12, false, TargetFlags.Harmful) { m_Owner = owner; m_Owner.Caster.SendAsciiMessage("Selecione o alvo..."); }