Message for drop item while casting prevention.
This commit is contained in:
@@ -155,6 +155,7 @@ public class RequestDropItem implements IClientIncomingPacket
|
||||
// Do not drop items when casting known skills to avoid exploits.
|
||||
if (player.getKnownSkill(skill.getSkillId()) != null)
|
||||
{
|
||||
player.sendMessage("You cannot drop an item while casting " + skill.getSkill().getName() + ".");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -175,6 +176,7 @@ public class RequestDropItem implements IClientIncomingPacket
|
||||
// Do not drop items when casting known skills to avoid exploits.
|
||||
if (player.getKnownSkill(skill.getId()) != null)
|
||||
{
|
||||
player.sendMessage("You cannot drop an item while casting " + skill.getName() + ".");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user