Core/Misc: Implement reinterpret casts for all battleground classes and use them.
This commit is contained in:
1 parent
5164caa9ff
commit
7f744de746
6 files changed
+61
-11
No files matched your search
@@ -1136,7 +1136,7 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
|
||||
uint8 nodeType = spellId == 68719 ? NODE_TYPE_REFINERY : NODE_TYPE_QUARRY;
|
||||
uint8 nodeState = player->GetTeamId() == TEAM_ALLIANCE ? NODE_STATE_CONTROLLED_A : NODE_STATE_CONTROLLED_H;
|
||||
|
||||
BattlegroundIC* pIC = static_cast<BattlegroundIC*>(player->GetBattleground());
|
||||
BattlegroundIC* pIC = player->GetBattleground()->ToBattlegroundIC();
|
||||
if (pIC->GetNodeState(nodeType) == nodeState)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user