*Do not allow to build vehicles when workshop is destroyed.
--HG-- branch : trunk
This commit is contained in:
@@ -192,6 +192,9 @@ class SiegeWorkshop : public OPvPCapturePoint
|
||||
void SetStateByBuildingState();
|
||||
void ChangeState();
|
||||
void DespawnAllVehicles();
|
||||
|
||||
bool CanBuildVehicle() const { return m_vehicles.size() < MAX_VEHICLE_PER_WORKSHOP && m_buildingState->damageState != DAMAGE_DESTROYED; }
|
||||
|
||||
uint32 *m_engEntry;
|
||||
uint32 m_engGuid;
|
||||
Creature *m_engineer;
|
||||
|
||||
Reference in New Issue
Block a user