From 93da1f50377280b097abb0c56ad4c6bf4da9f5c2 Mon Sep 17 00:00:00 2001 From: xavier Date: Sat, 10 Sep 2011 07:22:45 +0000 Subject: [PATCH] small tweaks to spiritspeak/animate. Removed the turn to bones feature of animate, as it is why the corpses close for otherplayers ... --- Scripts/Skills/SpiritSpeak.cs | 2 +- Scripts/Spells/Necromancy/AnimateDeadSpell.cs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Scripts/Skills/SpiritSpeak.cs b/Scripts/Skills/SpiritSpeak.cs index 9356cf22a..021544ae9 100644 --- a/Scripts/Skills/SpiritSpeak.cs +++ b/Scripts/Skills/SpiritSpeak.cs @@ -138,7 +138,7 @@ namespace Server.SkillHandlers foreach ( Item item in Caster.GetItemsInRange( 3 ) ) { - if ( item is Corpse && !((Corpse)item).Channeled ) + if( item is Corpse && !( (Corpse)item ).Channeled && !( (Corpse)item ).Animated ) { toChannel = (Corpse)item; break; diff --git a/Scripts/Spells/Necromancy/AnimateDeadSpell.cs b/Scripts/Spells/Necromancy/AnimateDeadSpell.cs index 3044dc92b..63c0ac955 100644 --- a/Scripts/Spells/Necromancy/AnimateDeadSpell.cs +++ b/Scripts/Spells/Necromancy/AnimateDeadSpell.cs @@ -375,11 +375,8 @@ namespace Server.Spells.Necromancy summoned.MoveToWorld( loc, map ); - corpse.ProcessDelta(); - corpse.SendRemovePacket(); - corpse.ItemID = Utility.Random( 0xECA, 9 ); // bone graphic - corpse.Hue = 0; - corpse.ProcessDelta(); + corpse.Hue = 1109; + corpse.Animated = true; Register( caster, summoned );