diff options
Diffstat (limited to 'src/server/game/Handlers/GarrisonHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/GarrisonHandler.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/server/game/Handlers/GarrisonHandler.cpp b/src/server/game/Handlers/GarrisonHandler.cpp index ef725a3cd39..6670cf3fefa 100644 --- a/src/server/game/Handlers/GarrisonHandler.cpp +++ b/src/server/game/Handlers/GarrisonHandler.cpp @@ -16,42 +16,29 @@ */ #include "WorldSession.h" -#include "Garrison.h" #include "GarrisonPackets.h" #include "Player.h" void WorldSession::HandleGetGarrisonInfo(WorldPackets::Garrison::GetGarrisonInfo& /*getGarrisonInfo*/) { - if (Garrison* garrison = _player->GetGarrison()) - garrison->SendInfo(); } void WorldSession::HandleGarrisonPurchaseBuilding(WorldPackets::Garrison::GarrisonPurchaseBuilding& garrisonPurchaseBuilding) { if (!_player->GetNPCIfCanInteractWith(garrisonPurchaseBuilding.NpcGUID, UNIT_NPC_FLAG_NONE, UNIT_NPC_FLAG_2_GARRISON_ARCHITECT)) return; - - if (Garrison* garrison = _player->GetGarrison()) - garrison->PlaceBuilding(garrisonPurchaseBuilding.PlotInstanceID, garrisonPurchaseBuilding.BuildingID); } void WorldSession::HandleGarrisonCancelConstruction(WorldPackets::Garrison::GarrisonCancelConstruction& garrisonCancelConstruction) { if (!_player->GetNPCIfCanInteractWith(garrisonCancelConstruction.NpcGUID, UNIT_NPC_FLAG_NONE, UNIT_NPC_FLAG_2_GARRISON_ARCHITECT)) return; - - if (Garrison* garrison = _player->GetGarrison()) - garrison->CancelBuildingConstruction(garrisonCancelConstruction.PlotInstanceID); } void WorldSession::HandleGarrisonRequestBlueprintAndSpecializationData(WorldPackets::Garrison::GarrisonRequestBlueprintAndSpecializationData& /*garrisonRequestBlueprintAndSpecializationData*/) { - if (Garrison* garrison = _player->GetGarrison()) - garrison->SendBlueprintAndSpecializationData(); } void WorldSession::HandleGarrisonGetMapData(WorldPackets::Garrison::GarrisonGetMapData& /*garrisonGetMapData*/) { - if (Garrison* garrison = _player->GetGarrison()) - garrison->SendMapData(_player); } |