View Single Post
Old 11-29-2005, 03:42 PM   #4 (permalink)
arul
Forum Expert
 
arul's Avatar
 
Join Date: Jan 2005
Location: Hic sunt leones ...
Age: 21
Posts: 1,287
Send a message via MSN to arul
Default

Quote:
Originally Posted by hollysong
hi i find a bug in the PoisonStrike spell. if a murderer throw poision strike spell to any one if one or more innoncent near(1 square) the target(player or npc) affect by the spell but caster dont be a agressor the innoncents(dont do criminal action).

note:i am using runuo1.0.0 (may i wrote wrong but i am using latest release) and i dont change anything on the necromancer spells.
Just open your PoisonStrike.cs and add the code in red
Code:
					for ( int i = 0; i < targets.Count; ++i )
					{
						Mobile targ = (Mobile)targets[i];

						int num;

						if ( targ.InRange( m.Location, 0 ) )
							num = 1;
						else if ( targ.InRange( m.Location, 1 ) )
							num = 2;
						else
							num = 3;

                                                 targ.RegisterDamage(((int)damage / num), Caster);
                                                 Caster.DoHarmful(targ);

                                                 SpellHelper.Damage( this, targ, damage / num, 0, 0, 0, 100, 0 );
					}
It's not maybe the best way how to do it, but it's working
arul is offline   Reply With Quote