diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 7943596..a889023 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -702,7 +702,7 @@ ElunaRegister PlayerMethods[] = { "SendTaxiMenu", &LuaPlayer::SendTaxiMenu }, // :SendTaxiMenu(creature) - Sends flight window to player from creature { "RewardQuest", &LuaPlayer::RewardQuest }, // :RewardQuest(entry) - Gives quest rewards for the player { "SendAuctionMenu", &LuaPlayer::SendAuctionMenu }, // :SendAuctionMenu(unit) - Sends auction window to player. Auction house is sent by object. - { "SendShowMailBox", &LuaPlayer::SendShowMailBox }, // :SendShowMailBox([guid]) - Sends mail window to player. Sent by guid if provided (valid mailbox required for < wotlk) + { "SendShowMailBox", &LuaPlayer::SendShowMailBox }, // :SendShowMailBox([mailboxguid]) - Sends the mail window to player from the mailbox gameobject. The guid is required on patches below wotlk. { "StartTaxi", &LuaPlayer::StartTaxi }, // :StartTaxi(pathId) - player starts the given flight path { "GossipSendPOI", &LuaPlayer::GossipSendPOI }, // :GossipSendPOI(X, Y, Icon, Flags, Data, Name) - Sends a point of interest to the player { "GossipAddQuests", &LuaPlayer::GossipAddQuests }, // :GossipAddQuests(unit) - Adds unit's quests to player's gossip menu diff --git a/PlayerMethods.h b/PlayerMethods.h index c091aaa..12943cd 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -1567,7 +1567,7 @@ namespace LuaPlayer int DurabilityRepairAll(Eluna* /*E*/, lua_State* L, Player* player) { bool cost = Eluna::CHECKVAL(L, 2, true); - float discountMod = Eluna::CHECKVAL(L, 3); + float discountMod = Eluna::CHECKVAL(L, 3, 1.0f); bool guildBank = Eluna::CHECKVAL(L, 4, false); #ifdef CLASSIC