Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
using Server.Spells;
|
||||
|
||||
namespace Server.ACC.CSS.Systems.Bard
|
||||
{
|
||||
public class BardEnchantingEtudeSpell : BardSpell
|
||||
{
|
||||
|
||||
private static SpellInfo m_Info = new SpellInfo(
|
||||
"Enchanting Etude", "Enchantendre",
|
||||
//SpellCircle.First,
|
||||
212,
|
||||
9041
|
||||
);
|
||||
|
||||
public override SpellCircle Circle
|
||||
{
|
||||
get { return SpellCircle.First; }
|
||||
}
|
||||
|
||||
public override double CastDelay{ get{ return 3; } }
|
||||
public override double RequiredSkill{ get{ return 70.0; } }
|
||||
public override int RequiredMana{ get{ return 12; } }
|
||||
|
||||
public BardEnchantingEtudeSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
if( CheckSequence() )
|
||||
{
|
||||
ArrayList targets = new ArrayList();
|
||||
|
||||
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
|
||||
{
|
||||
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
|
||||
targets.Add( m );
|
||||
}
|
||||
|
||||
|
||||
for ( int i = 0; i < targets.Count; ++i )
|
||||
{
|
||||
Mobile m = (Mobile)targets[i];
|
||||
|
||||
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.1 );
|
||||
string intt = "int";
|
||||
|
||||
double duration = ( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
|
||||
|
||||
StatMod mod = new StatMod( StatType.Int, intt, + amount, TimeSpan.FromSeconds( duration ) );
|
||||
|
||||
m.AddStatMod( mod );
|
||||
|
||||
m.FixedParticles( 0x375A, 10, 15, 5017, 0x1F8, 3, EffectLayer.Waist );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user