public override bool OnMoveOver(Mobile m) { Effects.SendLocationParticles(EffectItem.Create(Location, Map, EffectItem.DefaultDuration), 0x3709, 10, 30, 5052); Ability.Aura(Location, Map, m_Spell.Caster, BlueSpell.GetDamage(m_Spell.Caster, m, m_Spell.DamageSkill, 1.5), BlueSpell.GetDamage(m_Spell.Caster, m, m_Spell.DamageSkill, 1.5), ResistanceType.Fire, 0, null, "", false, false); //SpellHelper.Damage( m_Spell, m, BlueSpell.GetDamage( m_Spell.Caster, m, m_Spell.DamageSkill, 1.5 ), 0, 0, 0, 0, 100 ); m_JustRemove = true; return(true); }
private void Check() { if (Deleted) { return; } if (m_JustRemove) { Delete(); } else if (!(DateTime.Now >= m_RemoveAt)) { Timer.DelayCall(TimeSpan.FromSeconds(0.05), new TimerCallback(Check)); } else { Effects.SendLocationParticles(EffectItem.Create(Location, Map, EffectItem.DefaultDuration), 0x3709, 10, 30, 5052); //Ability.Aura( Location, Map, m_From, m_Damage, m_Damage, ResistanceType.Fire, 0, null, "", false, false ); Ability.Aura(Location, Map, m_Spell.Caster, BlueSpell.GetDamage(m_Spell.Caster, null, m_Spell.DamageSkill, 1.5), BlueSpell.GetDamage(m_Spell.Caster, null, m_Spell.DamageSkill, 1.5), ResistanceType.Fire, 0, null, "", false, false); /* * List<Mobile> mobiles = new List<Mobile>(); * * foreach( Mobile m in GetMobilesInRange( 0 ) ) * { * if ( m != null && BlueSpell.CanTarget( m_Spell.Caster, m, true ) ) * mobiles.Add( m ); * } * * for ( int i = 0; i < mobiles.Count; i++ ) * { * if ( mobiles[i] != null ) * SpellHelper.Damage( m_Spell, mobiles[i], BlueSpell.GetDamage( m_Spell.Caster, mobiles[i], m_Spell.DamageSkill, 2.0 ), 0, 0, 0, 0, 100 ); * } */ Delete(); } }