Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Serialization

Serialization This forum is for modifications to the serialization code of RunUO

Reply
 
Thread Tools Display Modes
Old 04-19-2009, 05:34 PM   #1 (permalink)
Forum Expert
 
Join Date: Jan 2007
Location: Pontauban, once upon a time
Posts: 2,392
Default Necro/arcane Runuo Bug Fix

Hi,

Here is the bug fix to make necro regs work with arcane clothing as it should do, not sure where to post so:

--- NecromancerSpell.cs.orig 2007-05-26 03:12:41.000000000 +0000
+++ NecromancerSpell.cs 2009-04-18 21:40:27.000000000 +0000
@@ -1,5 +1,6 @@
using System;
using Server;
+using Server.Items;
namespace Server.Spells.Necromancy
{
@@ -8,6 +9,17 @@ namespace Server.Spells.Necromancy
public abstract double RequiredSkill{ get; }
public abstract int RequiredMana{ get; }
+ public override bool ConsumeReagents()
+ {
+ if( base.ConsumeReagents() )
+ return true;
+
+ if( ArcaneGem.ConsumeCharges( Caster, 1 ) )
+ return true;
+
+ return false;
+ }
+
public override SkillName CastSkill{ get{ return SkillName.Necromancy; } }
public override SkillName DamageSkill{ get{ return SkillName.SpiritSpeak; } }
__________________
"The ultimate is not to win, but to reach within the depths of your capabilities and to compete against yourself." BAD+
Pont is online now   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5