// constructor public SiegeWreckerSpellHandler(GameLiving caster, Spell spell, SpellLine line) : base(caster, spell, line) { Unstealth = false; // Construct a new mine. mine = new GameMine { Model = 2591, Name = spell.Name, Realm = caster.Realm, X = caster.X, Y = caster.Y, Z = caster.Z, MaxSpeedBase = 0, CurrentRegionID = caster.CurrentRegionID, Heading = caster.Heading, Owner = (GamePlayer)caster }; // Construct the mine spell dbs = new DBSpell { Name = spell.Name, Icon = 7301, ClientEffect = 7301, Damage = spell.Damage, DamageType = (int)spell.DamageType, Target = "Enemy", Radius = 0, Type = "DirectDamage", Value = spell.Value, Duration = spell.ResurrectHealth, Frequency = spell.ResurrectMana, Pulse = 0, PulsePower = 0, LifeDrainReturn = spell.LifeDrainReturn, Power = 0, CastTime = 0, Range = WorldMgr.VISIBILITY_DISTANCE }; sRadius = 350; s = new Spell(dbs, 1); sl = SkillBase.GetSpellLine(GlobalSpellsLines.Reserved_Spells); trap = ScriptMgr.CreateSpellHandler(Caster, s, sl); }
// constructor public SiegeWreckerSpellHandler(GameLiving caster, Spell spell, SpellLine line) : base(caster, spell, line) { Unstealth = false; //Construct a new mine. mine = new GameMine(); mine.Model = 2591; mine.Name = spell.Name; mine.Realm = caster.Realm; mine.X = caster.X; mine.Y = caster.Y; mine.Z = caster.Z; mine.MaxSpeedBase = 0; mine.CurrentRegionID = caster.CurrentRegionID; mine.Heading = caster.Heading; mine.Owner = (GamePlayer)caster; // Construct the mine spell dbs = new DBSpell(); dbs.Name = spell.Name; dbs.Icon = 7301; dbs.ClientEffect = 7301; dbs.Damage = spell.Damage; dbs.DamageType = (int)spell.DamageType; dbs.Target = "Enemy"; dbs.Radius = 0; dbs.Type = "DirectDamage"; dbs.Value = spell.Value; dbs.Duration = spell.ResurrectHealth; dbs.Frequency = spell.ResurrectMana; dbs.Pulse = 0; dbs.PulsePower = 0; dbs.LifeDrainReturn = spell.LifeDrainReturn; dbs.Power = 0; dbs.CastTime = 0; dbs.Range = WorldMgr.VISIBILITY_DISTANCE; sRadius = 350; s = new Spell(dbs, 1); sl = SkillBase.GetSpellLine(GlobalSpellsLines.Reserved_Spells); trap = ScriptMgr.CreateSpellHandler(m_caster, s, sl); }