Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,123 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Server.Items;
using Server.Mobiles;
namespace Server.Spells.Necromancy
{
public class WitherSpell : NecromancerSpell
{
public override DamageType SpellDamageType { get { return DamageType.SpellAOE; } }
private static readonly SpellInfo m_Info = new SpellInfo(
"Wither", "Kal Vas An Flam",
203,
9031,
Reagent.NoxCrystal,
Reagent.GraveDust,
Reagent.PigIron);
public WitherSpell(Mobile caster, Item scroll)
: base(caster, scroll, m_Info)
{
}
public override TimeSpan CastDelayBase
{
get
{
return TimeSpan.FromSeconds(1.5);
}
}
public override double RequiredSkill
{
get
{
return 60.0;
}
}
public override int RequiredMana
{
get
{
return 23;
}
}
public override bool DelayedDamage
{
get
{
return false;
}
}
public override void OnCast()
{
if (this.CheckSequence())
{
/* Creates a withering frost around the Caster,
* which deals Cold Damage to all valid targets in a radius of 5 tiles.
*/
Map map = this.Caster.Map;
if (map != null)
{
Effects.PlaySound(this.Caster.Location, map, 0x1FB);
Effects.PlaySound(this.Caster.Location, map, 0x10B);
Effects.SendLocationParticles(EffectItem.Create(this.Caster.Location, map, EffectItem.DefaultDuration), 0x37CC, 1, 40, 97, 3, 9917, 0);
foreach (var id in AcquireIndirectTargets(Caster.Location, Core.ML ? 4 : 5))
{
Mobile m = id as Mobile;
this.Caster.DoHarmful(id);
if (m != null)
{
m.FixedParticles(0x374A, 1, 15, 9502, 97, 3, (EffectLayer)255);
}
else
{
Effects.SendLocationParticles(id, 0x374A, 1, 30, 97, 3, 9502, 0);
}
double damage = Utility.RandomMinMax(30, 35);
int karma = m != null ? m.Karma / 100 : 0;
damage *= 300 + karma + (this.GetDamageSkill(this.Caster) * 10);
damage /= 1000;
int sdiBonus;
if (Core.SE)
{
if (Core.SA)
{
sdiBonus = SpellHelper.GetSpellDamageBonus(Caster, m, CastSkill, m is PlayerMobile);
}
else
{
sdiBonus = AosAttributes.GetValue(this.Caster, AosAttribute.SpellDamage);
// PvP spell damage increase cap of 15% from an items magic property in Publish 33(SE)
if (id is PlayerMobile && this.Caster.Player && sdiBonus > 15)
sdiBonus = 15;
}
}
else
{
sdiBonus = AosAttributes.GetValue(this.Caster, AosAttribute.SpellDamage);
}
damage *= (100 + sdiBonus);
damage /= 100;
SpellHelper.Damage(this, id, damage, 0, 0, 100, 0, 0);
}
}
}
this.FinishSequence();
}
}
}