Fixed bug with adding Vip from console or map, who is already on viplist.

This commit is contained in:
Kamil
2012-07-09 08:59:16 +02:00
committed by niczkx
parent c8d9833444
commit 8f492f7e06
14 changed files with 226 additions and 225 deletions

View File

@@ -263,7 +263,9 @@ function GameInterface.createThingMenu(menuPosition, lookThing, useThing, creatu
menu:addOption(tr('Invite to private chat'), function() g_game.inviteToOwnChannel(creatureName) end)
menu:addOption(tr('Exclude from private chat'), function() g_game.excludeFromOwnChannel(creatureName) end) -- [TODO] must be removed after message's popup labels been implemented
end
menu:addOption(tr('Add to VIP list'), function() g_game.addVip(creatureName) end)
if (not Player:hasVip(creatureName)) then
menu:addOption(tr('Add to VIP list'), function() g_game.addVip(creatureName) end)
end
local localPlayerShield = localPlayer:asCreature():getShield()
local creatureShield = creatureThing:getShield()