fix: Fix direction change speed hack (#1194)

This commit is contained in:
Kamron Batman 2022-10-16 20:17:18 -07:00 • committed by GitHub
parent 9b2b34f5fb
commit d5416b6dec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 92 additions and 164 deletions

View file

@ -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))