fix: Fix direction change speed hack (#1194)
This commit is contained in:
parent
9b2b34f5fb
commit
d5416b6dec
4 changed files with 92 additions and 164 deletions
|
|
@ -26,7 +26,6 @@ namespace Server.SkillHandlers
|
|||
else
|
||||
{
|
||||
m.Target = new InternalTarget();
|
||||
|
||||
m.SendLocalizedMessage(502368); // Which trap will you attempt to disarm?
|
||||
}
|
||||
|
||||
|
|
@ -47,14 +46,17 @@ namespace Server.SkillHandlers
|
|||
}
|
||||
else if (targeted is TrappableContainer targ)
|
||||
{
|
||||
from.Direction = from.GetDirectionTo(targ);
|
||||
|
||||
if (targ.TrapType == TrapType.None)
|
||||
{
|
||||
from.SendLocalizedMessage(502373); // That doesn't appear to be trapped
|
||||
return;
|
||||
}
|
||||
|
||||
if (targ.RootParent == from)
|
||||
{
|
||||
from.Direction = from.GetDirectionTo(targ);
|
||||
}
|
||||
|
||||
from.PlaySound(0x241);
|
||||
|
||||
if (from.CheckTargetSkill(SkillName.RemoveTrap, targ, targ.TrapPower, targ.TrapPower + 30))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue