Skip to content

Commit 95e6738

Browse files
authored
Sync with latest round of TC branch ports (#532)
1 parent 3b86762 commit 95e6738

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

methods/TrinityCore/BattleGroundMethods.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

methods/TrinityCore/ItemMethods.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)