More triggers for onActionRequest.
Contributed by Sahar.
This commit is contained in:
@ -132,6 +132,8 @@ public class Action implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
player.onActionRequest();
|
||||
|
||||
switch (_actionId)
|
||||
{
|
||||
case 0:
|
||||
|
@ -121,6 +121,8 @@ public class Attack implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
player.onActionRequest();
|
||||
|
||||
if (player.getTarget() != target)
|
||||
{
|
||||
target.onAction(player);
|
||||
|
@ -246,9 +246,6 @@ public class MoveBackwardToLocation implements IClientIncomingPacket
|
||||
}
|
||||
|
||||
// Mobius: Check spawn protections.
|
||||
if (player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
player.onActionRequest();
|
||||
}
|
||||
player.onActionRequest();
|
||||
}
|
||||
}
|
||||
|
@ -85,6 +85,8 @@ public class RequestMagicSkillUse implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
player.onActionRequest();
|
||||
|
||||
player.useMagic(skill, null, _ctrlPressed, _shiftPressed);
|
||||
}
|
||||
}
|
||||
|
@ -169,6 +169,8 @@ public class UseItem implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
|
||||
player.onActionRequest();
|
||||
|
||||
if (item.isEquipable())
|
||||
{
|
||||
// Max equipable item grade configuration.
|
||||
|
Reference in New Issue
Block a user