From bf038f71756ca132e5c2e53b8c3d0fe56b3f9c9e Mon Sep 17 00:00:00 2001 From: xavier Date: Fri, 15 Oct 2010 07:44:56 +0000 Subject: [PATCH] Fixes to prevent internalized daemons and logs. --- Scripts/Items/Skill Items/Lumberjack/Log.cs | 1 + Scripts/Spells/Eighth/SummonDaemon.cs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/Items/Skill Items/Lumberjack/Log.cs b/Scripts/Items/Skill Items/Lumberjack/Log.cs index 969edc0e8..984d3a473 100644 --- a/Scripts/Items/Skill Items/Lumberjack/Log.cs +++ b/Scripts/Items/Skill Items/Lumberjack/Log.cs @@ -105,6 +105,7 @@ namespace Server.Items else if ( from.Skills.Carpentry.Value < skill && from.Skills.Lumberjacking.Value < skill ) { + item.Delete(); from.SendLocalizedMessage( 1072652 ); // You cannot work this strange and unusual wood. return false; } diff --git a/Scripts/Spells/Eighth/SummonDaemon.cs b/Scripts/Spells/Eighth/SummonDaemon.cs index ee5621162..92ebb350f 100644 --- a/Scripts/Spells/Eighth/SummonDaemon.cs +++ b/Scripts/Spells/Eighth/SummonDaemon.cs @@ -9,8 +9,6 @@ namespace Server.Spells.Eighth { public class SummonDaemonSpell : MagerySpell { - private BaseCreature m_Daemon = new SummonedDaemon(); - private static SpellInfo m_Info = new SpellInfo( "Summon Daemon", "Kal Vas Xen Corp", 269, @@ -48,8 +46,9 @@ namespace Server.Spells.Eighth { TimeSpan duration = TimeSpan.FromSeconds( (2 * Caster.Skills.Magery.Fixed) / 5 ); - if ( Core.AOS ) + if ( Core.AOS ) /* Why two diff daemons? TODO: solve this */ { + BaseCreature m_Daemon = new SummonedDaemon(); SpellHelper.Summon( m_Daemon, Caster, 0x216, duration, false, false ); m_Daemon.FixedParticles(0x3728, 8, 20, 5042, EffectLayer.Head ); }