[Quest API] Add GetLeader() and GetLeaderName() to Perl/Lua. (#2701)

* [Quest API] Add $raid->GetLeader() and $raid->GetLeaderName()

* Remove semicolon

* Tweaks

* Remove inline

* Add LUA compatibility

* Add GetLeaderName() to LUA

* Cast leadername to string

* Fix GetLeaderName return type

* Tweak
This commit is contained in:
Vayle
2023-01-03 20:17:19 -05:00
committed by GitHub
parent a80a6de59f
commit 6e1c4b768f
4 changed files with 27 additions and 0 deletions
+1
View File
@@ -104,6 +104,7 @@ public:
void SetLeader(Client* c) { leader = c; }
Client* GetLeader() { return leader; }
std::string GetLeaderName() { return leadername; }
bool IsLeader(Client* c) { return c == leader; }
bool IsLeader(const char* name) { return !strcmp(leadername, name); }
void SetRaidLeader(const char *wasLead, const char *name);