Skip to content

Commit

Permalink
fixed change equip
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyyyyy committed Jul 8, 2017
1 parent 2b510cc commit 673f468
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions HM_Suit/HM_Suit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ end
-- 循环换装处理
_HM_Suit.ChangeSuit = function()
local me = GetClientPlayer()
if not me then
return
if not me or me and me.bFightState then
return OutputMessage("MSG_ANNOUNCE_YELLOW", g_tStrings.tItem_Msg[ITEM_RESULT_CODE.PLAYER_IN_FIGHT])
end
local nCur, nTo = me.GetEquipIDArray(0), 1
if nCur == 0 or nCur == 1 then
Expand All @@ -117,6 +117,10 @@ end

-- 循环脱装备、穿装备
_HM_Suit.UnmountEquip = function()
local me = GetClientPlayer()
if not me or me and me.bFightState then
return OutputMessage("MSG_ANNOUNCE_YELLOW", g_tStrings.tItem_Msg[ITEM_RESULT_CODE.PLAYER_IN_FIGHT])
end
local txt = Player_GetFrame():Lookup("Btn_Umount"):Lookup("", "Text_Umount")
if _HM_Suit.tBagUmount then
txt:SetText(_L["Off"])
Expand Down

0 comments on commit 673f468

Please sign in to comment.