158 {
160
163 {
164 case 0:
166 break;
167 case 1:
169 break;
170 case 2:
172 break;
173 }
174
176 {
177 creature->
CastSpell(player, spellId,
true);
179 }
180 else
181 {
184 data << spellId;
188 }
189 return true;
190 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_BUILD_DEMOLISHER_FORCE
Definition: zone_wintergrasp.cpp:58
@ SPELL_ACTIVATE_CONTROL_ARMS
Definition: zone_wintergrasp.cpp:59
@ SPELL_BUILD_SIEGE_VEHICLE_FORCE_ALLIANCE
Definition: zone_wintergrasp.cpp:56
@ SPELL_BUILD_SIEGE_VEHICLE_FORCE_HORDE
Definition: zone_wintergrasp.cpp:55
@ SPELL_BUILD_CATAPULT_FORCE
Definition: zone_wintergrasp.cpp:57
@ SPELL_CUSTOM_ERROR_CANT_BUILD_MORE_VEHICLES
Definition: SharedDefines.h:1185
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
@ SPELL_FAILED_CUSTOM_ERROR
Definition: SharedDefines.h:1121
void CloseGossipMenuFor(Player *player)
Definition: ScriptedGossip.cpp:56
@ SMSG_CAST_FAILED
Definition: Opcodes.h:334
TeamId GetTeamId(bool original=false) const
Definition: Player.h:2108
WorldSession * GetSession() const
Definition: Player.h:1998
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
Definition: WorldPacket.h:26
void SendPacket(WorldPacket const *packet)
Send a packet to the client.
Definition: WorldSession.cpp:214
bool canBuild(Creature *creature)
Definition: zone_wintergrasp.cpp:193