ModernUO/Scripts/Spells/Spellweaving/ReaperForm.cs
2018-08-14 06:16:50 +08:00

55 lines
1.5 KiB
C#

using System;
using Server.Network;
namespace Server.Spells.Spellweaving
{
public class ReaperFormSpell : ArcaneForm
{
private static SpellInfo m_Info = new SpellInfo( "Reaper Form", "Tarisstree", -1 );
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds( 2.5 );
public static void Initialize()
{
EventSink.Login += new LoginEventHandler( OnLogin );
}
public static void OnLogin( LoginEventArgs e )
{
TransformContext context = TransformationSpellHelper.GetContext( e.Mobile );
if( context != null && context.Type == typeof( ReaperFormSpell ) )
e.Mobile.Send( SpeedControl.WalkSpeed );
}
public override double RequiredSkill => 24.0;
public override int RequiredMana => 34;
public override int Body => 0x11D;
public override int FireResistOffset => -25;
public override int PhysResistOffset => 5 + FocusLevel;
public override int ColdResistOffset => 5 + FocusLevel;
public override int PoisResistOffset => 5 + FocusLevel;
public override int NrgyResistOffset => 5 + FocusLevel;
public virtual int SwingSpeedBonus { get { return 10 + FocusLevel; } }
public virtual int SpellDamageBonus { get { return 10 + FocusLevel; } }
public ReaperFormSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
{
}
public override void DoEffect( Mobile m )
{
m.PlaySound( 0x1BA );
m.Send( SpeedControl.WalkSpeed );
}
public override void RemoveEffect( Mobile m )
{
m.Send( SpeedControl.Disable );
}
}
}