Skip to content

Commit

Permalink
Added missing item use check
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-dev committed Aug 22, 2024
1 parent 8f937f1 commit 375474e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public int getLevel() {

@Override
public boolean canAct(Player player, Item parentItem, Item targetItem, Object... params) {
if (mapid != 0 && player.getWorldId() != mapid) {
PacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.STR_SKILL_CAN_NOT_USE_ITEM_IN_CURRENT_POSITION());
return false;
}
Skill skill = SkillEngine.getInstance().getSkill(player, skillid, level, player.getTarget(), parentItem.getItemTemplate());
if (skill == null)
return false;
Expand Down

0 comments on commit 375474e

Please sign in to comment.