Message for drop item while casting prevention.

This commit is contained in:
MobiusDevelopment
2020-05-06 15:16:42 +00:00
parent e1bccf5b39
commit 31ae41bb48
19 changed files with 36 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ public class RequestDropItem implements IClientIncomingPacket
final Skill skill = skillCaster.getSkill();
if ((skill != null) && (player.getKnownSkill(skill.getId()) != null))
{
player.sendMessage("You cannot drop an item while casting " + skill.getName() + ".");
return;
}
}
@@ -186,6 +187,7 @@ public class RequestDropItem implements IClientIncomingPacket
final SkillUseHolder skill = player.getQueuedSkill();
if ((skill != null) && (player.getKnownSkill(skill.getSkillId()) != null))
{
player.sendMessage("You cannot drop an item while casting " + skill.getSkill().getName() + ".");
return;
}