Fixes to prevent internalized daemons and logs.

This commit is contained in:
xavier 2010-10-15 07:44:56 +00:00
parent 40ee26c6ed
commit bf038f7175
2 changed files with 3 additions and 3 deletions

View file

@ -105,6 +105,7 @@ namespace Server.Items
else if ( from.Skills.Carpentry.Value < skill && else if ( from.Skills.Carpentry.Value < skill &&
from.Skills.Lumberjacking.Value < skill ) from.Skills.Lumberjacking.Value < skill )
{ {
item.Delete();
from.SendLocalizedMessage( 1072652 ); // You cannot work this strange and unusual wood. from.SendLocalizedMessage( 1072652 ); // You cannot work this strange and unusual wood.
return false; return false;
} }

View file

@ -9,8 +9,6 @@ namespace Server.Spells.Eighth
{ {
public class SummonDaemonSpell : MagerySpell public class SummonDaemonSpell : MagerySpell
{ {
private BaseCreature m_Daemon = new SummonedDaemon();
private static SpellInfo m_Info = new SpellInfo( private static SpellInfo m_Info = new SpellInfo(
"Summon Daemon", "Kal Vas Xen Corp", "Summon Daemon", "Kal Vas Xen Corp",
269, 269,
@ -48,8 +46,9 @@ namespace Server.Spells.Eighth
{ {
TimeSpan duration = TimeSpan.FromSeconds( (2 * Caster.Skills.Magery.Fixed) / 5 ); 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 ); SpellHelper.Summon( m_Daemon, Caster, 0x216, duration, false, false );
m_Daemon.FixedParticles(0x3728, 8, 20, 5042, EffectLayer.Head ); m_Daemon.FixedParticles(0x3728, 8, 20, 5042, EffectLayer.Head );
} }