Skip to content

Commit

Permalink
Insert check to textwhite.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Feb 21, 2024
1 parent d7682a7 commit ce97c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/scripts/actions/items/usable_outfit_items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function usableOutfitItems.onUse(player, item, fromPosition, target, toPosition,
player:getPosition():sendMagicEffect(outfitInfo.effect or CONST_ME_GIFT_WRAPS)
if outfitInfo.textorange then
player:say(outfitInfo.textorange, TALKTYPE_MONSTER_SAY)
else
elseif outfitInfo.textwhite then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, outfitInfo.textwhite)
end
item:remove(1)
Expand All @@ -73,7 +73,7 @@ function usableOutfitItems.onUse(player, item, fromPosition, target, toPosition,
player:getPosition():sendMagicEffect(outfitInfo.effect or CONST_ME_GIFT_WRAPS)
if outfitInfo.textorange then
player:say(outfitInfo.textorange, TALKTYPE_MONSTER_SAY)
else
elseif outfitInfo.textwhite then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, outfitInfo.textwhite)
end

Expand Down

0 comments on commit ce97c01

Please sign in to comment.