http://www.uodemise.com/forum/showthread.php?t=145364 BOD turn-in should have 10 second timer since pub 50 http://www.uodemise.com/forum/showthread.php?t=156441 Vet reward ore carts, gem carts, and stumps have missing range check added http://www.uodemise.com/forum/showthread.php?t=156380 Blood Oath: missing 35hp pvp dmg cap added, correct credit for kills/dmg given to caster, ML magic resist now applies. http://www.uodemise.com/forum/showthread.php?t=118729&page=3 Missing ore sizes added http://www.uodemise.com/forum/showthread.php?t=119888 Player-cast gates reveal stealthers/hiders. http://www.uodemise.com/forum/showthread.php?t=149218 Some necro spells should disturb a casting target http://www.uodemise.com/forum/showthread.php?t=149361 Failed snoop attempts should reveal thief if hidden. http://www.uodemise.com/forum/showthread.php?t=153962 Pets do not autostable in the case of a server restart/cash: fixed http://www.uodemise.com/forum/showthread.php?t=122745 Misc Aesthetic changes to spells, etc. earthquake wrong sound magic arrow inappropriate particles curse wrong sound agility wrong sound chain lightning should always play sound poison wrong sound dispel evil missing sound noble sacrifice male/female, diff sounds sacred journey missing sound
78 lines
No EOL
1.8 KiB
C#
78 lines
No EOL
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Server.Network;
|
|
using Server.Items;
|
|
using Server.Targeting;
|
|
|
|
namespace Server.Spells.Eighth
|
|
{
|
|
public class EarthquakeSpell : MagerySpell
|
|
{
|
|
private static SpellInfo m_Info = new SpellInfo(
|
|
"Earthquake", "In Vas Por",
|
|
233,
|
|
9012,
|
|
false,
|
|
Reagent.Bloodmoss,
|
|
Reagent.Ginseng,
|
|
Reagent.MandrakeRoot,
|
|
Reagent.SulfurousAsh
|
|
);
|
|
|
|
public override SpellCircle Circle { get { return SpellCircle.Eighth; } }
|
|
|
|
public EarthquakeSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
|
|
{
|
|
}
|
|
|
|
public override bool DelayedDamage{ get{ return !Core.AOS; } }
|
|
|
|
public override void OnCast()
|
|
{
|
|
if ( SpellHelper.CheckTown( Caster, Caster ) && CheckSequence() )
|
|
{
|
|
List<Mobile> targets = new List<Mobile>();
|
|
|
|
Map map = Caster.Map;
|
|
|
|
if ( map != null )
|
|
foreach ( Mobile m in Caster.GetMobilesInRange( 1 + (int)(Caster.Skills[SkillName.Magery].Value / 15.0) ) )
|
|
if ( Caster != m && SpellHelper.ValidIndirectTarget( Caster, m ) && Caster.CanBeHarmful( m, false ) && (!Core.AOS || Caster.InLOS( m )) )
|
|
targets.Add( m );
|
|
|
|
Caster.PlaySound( 0x220 );
|
|
|
|
for ( int i = 0; i < targets.Count; ++i )
|
|
{
|
|
Mobile m = targets[i];
|
|
|
|
int damage;
|
|
|
|
if ( Core.AOS )
|
|
{
|
|
damage = m.Hits / 2;
|
|
|
|
if ( !m.Player )
|
|
damage = Math.Max( Math.Min( damage, 100 ), 15 );
|
|
damage += Utility.RandomMinMax( 0, 15 );
|
|
|
|
}
|
|
else
|
|
{
|
|
damage = (m.Hits * 6) / 10;
|
|
|
|
if ( !m.Player && damage < 10 )
|
|
damage = 10;
|
|
else if ( damage > 75 )
|
|
damage = 75;
|
|
}
|
|
|
|
Caster.DoHarmful( m );
|
|
SpellHelper.Damage( TimeSpan.Zero, m, Caster, damage, 100, 0, 0, 0, 0 );
|
|
}
|
|
}
|
|
|
|
FinishSequence();
|
|
}
|
|
}
|
|
} |