mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Compile fix... another one... some day i will learn to wait to some c++ guys to help with 3.3.5a or 6.x to 4.3.4 c++ ports
This commit is contained in:
@@ -238,6 +238,8 @@ class Battlefield : public ZoneScript
|
||||
/// Return true if battle is start, false if battle is not started
|
||||
bool IsWarTime() const { return m_isActive; }
|
||||
|
||||
int8 GetState() const { return m_isActive ? BATTLEFIELD_IN_PROGRESS : (m_Timer <= m_StartGroupingTimer ? BATTLEFIELD_WARMUP : BATTLEFIELD_INACTIVE); }
|
||||
|
||||
/// Enable or Disable battlefield
|
||||
void ToggleBattlefield(bool enable) { m_IsEnabled = enable; }
|
||||
/// Return if battlefield is enable
|
||||
|
||||
Reference in New Issue
Block a user