From 130735de43de27f9056a20edcc7134c7115cc837 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Thu, 18 Dec 2014 19:19:34 +0200 Subject: [PATCH 1/2] Fix DurabilityRepairAll default value --- PlayerMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 53ef010c3d7bf22095352409ebedab603da6936b Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Thu, 18 Dec 2014 19:22:14 +0200 Subject: [PATCH 2/2] Fix shady comment --- LuaFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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