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
