[RELEASE] small code to fix phoenix skill (MY WAY!)

05/21/2009 01:04 BlooD-BoY#1
well do you know the bug in LOTF that when you kill a person and you have the phoenix skill and the person revs if you dun move then it will atk em with phoenix automaticaly no matter where they r? well i found a fix o.o (i only tested it in PvP and it worked dunno about monsters)

so.....lets begin.

search for
Code:
if (SkillAttributes[0] == 12)
and between
Code:
{
and
Code:
PlayerTargets.Add(Target, Other.CalculateDamage(this, Target, 1, SkillId, SkillLvl));
add this line
Code:
if (MyMath.PointDistance(LocX, LocY, Target.LocX, Target.LocY) < 5)
and your done, enjoy.
05/22/2009 01:32 Arcotemple#2
Tested!
It works!
For those with doubt lol
05/22/2009 03:20 Pete1990#3
Hmm i was thinking maybe we can add in if (MyMath.PointDistance(LocX, LocY, Target.LocX, Target.LocY) < 5) to the Tornado it will fix that one to:)
05/22/2009 13:27 BlooD-BoY#4
Quote:
Originally Posted by Arcotemple View Post
Tested!
It works!
For those with doubt lol
btw you can change the "5" to w/e value you want...this will change the distance from your char.

Quote:
Originally Posted by Pete1990 View Post
Hmm i was thinking maybe we can add in if (MyMath.PointDistance(LocX, LocY, Target.LocX, Target.LocY) < 5) to the Tornado it will fix that one to:)
yep, you just need to find the right place to put it :P