-
Notifications
You must be signed in to change notification settings - Fork 12
/
eluna.patch
33 lines (32 loc) · 1.46 KB
/
eluna.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp
index d783ef9..651f52d 100644
--- a/LuaFunctions.cpp
+++ b/LuaFunctions.cpp
@@ -602,6 +602,7 @@ ElunaRegister<Player> PlayerMethods[] =
{ "InBattlegroundQueue", &LuaPlayer::InBattlegroundQueue },
// {"IsImmuneToEnvironmentalDamage", &LuaPlayer::IsImmuneToEnvironmentalDamage}, // :IsImmuneToEnvironmentalDamage() - UNDOCUMENTED - Returns true if the player is immune to environmental damage
{ "CanSpeak", &LuaPlayer::CanSpeak },
+ { "QueueWardenPayload", &LuaPlayer::QueueWardenPayload },
{ "HasAtLoginFlag", &LuaPlayer::HasAtLoginFlag },
// {"InRandomLfgDungeon", &LuaPlayer::InRandomLfgDungeon}, // :InRandomLfgDungeon() - UNDOCUMENTED - Returns true if the player is in a random LFG dungeon
// {"HasPendingBind", &LuaPlayer::HasPendingBind}, // :HasPendingBind() - UNDOCUMENTED - Returns true if the player has a pending instance bind
diff --git a/PlayerMethods.h b/PlayerMethods.h
index 89e2ed4..2d1d423 100644
--- a/PlayerMethods.h
+++ b/PlayerMethods.h
@@ -255,6 +255,16 @@ namespace LuaPlayer
return 1;
}
+ /**
+ * Flags the
+ */
+ int QueueWardenPayload(lua_State* L, Player* player)
+ {
+ player->GetSession()->QueueWardenPayload();
+
+ return 0;
+ }
+
/**
* Returns 'true' if the [Player] has permission to uninvite others from the current group, 'false' otherwise.
*