1165 if (!player ||
gender != player->getGender())
1169 if (!player || !(
raceMask & player->getRaceMask()))
1191 return bg->IsSpellAllowed(
spellId, player);
1234 return battlefieldWG->IsEnabled() && (player->GetTeamId() == battlefieldWG->GetDefenderTeam()) && !battlefieldWG->IsWarTime();
virtual uint32 GetData(uint32 dataId) const override
Definition: Battlefield.h:266
int32 auraSpell
Definition: SpellMgr.h:486
Definition: Battlefield.h:27
uint32 questEndStatus
Definition: SpellMgr.h:490
bool CanFlyIn()
Return if we can use mount in battlefield.
Definition: Battlefield.h:335
uint32 raceMask
Definition: SpellMgr.h:487
uint32 areaId
Definition: SpellMgr.h:483
uint32 questStartStatus
Definition: SpellMgr.h:489
Definition: SpellAuraDefines.h:261
uint32 spellId
Definition: SpellMgr.h:482
uint32_t uint32
Definition: Define.h:150
bool IsWarTime() const
Return true if battle is start, false if battle is not started.
Definition: Battlefield.h:241
Definition: Battlefield.h:196
Gender gender
Definition: SpellMgr.h:488
Definition: SharedDefines.h:992
uint32 GetTypeId() const
Definition: Battlefield.h:234
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:67
Definition: Battlefield.h:33
uint32 questStart
Definition: SpellMgr.h:484
Definition: Battleground.h:235
Definition: SpellAuraDefines.h:267
Definition: SharedDefines.h:993
Definition: SharedDefines.h:95
uint32 questEnd
Definition: SpellMgr.h:485