File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,13 +76,14 @@ namespace LuaBattleGround
7676 }
7777
7878 /* *
79- * Returns the end time of the [BattleGround].
79+ * Returns the time remaining in milliseconds until [BattleGround] closes and removes all players.
80+ * This can be after battleground ends normally or when there are not enough players
8081 *
8182 * @return uint32 endTime
8283 */
8384 int GetEndTime (Eluna* E, BattleGround* bg)
8485 {
85- E->Push (bg->GetEndTime ());
86+ E->Push (bg->GetRemainingTime ());
8687 return 1 ;
8788 }
8889
@@ -220,7 +221,7 @@ namespace LuaBattleGround
220221 E->Push (bg->GetStatus ());
221222 return 1 ;
222223 }
223-
224+
224225 ElunaRegister<BattleGround> BattleGroundMethods[] =
225226 {
226227 // Getters
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ namespace LuaItem
484484 */
485485 int GetFlags (Eluna* E, Item* item)
486486 {
487- E->Push (item->GetTemplate ()->Flags );
487+ E->Push (item->GetTemplate ()->Flags [ 0 ] );
488488 return 1 ;
489489 }
490490
@@ -495,7 +495,7 @@ namespace LuaItem
495495 */
496496 int GetFlags2 (Eluna* E, Item* item)
497497 {
498- E->Push (item->GetTemplate ()->Flags2 );
498+ E->Push (item->GetTemplate ()->Flags [ 1 ] );
499499 return 1 ;
500500 }
501501
You can’t perform that action at this time.
0 commit comments