37#define GOSSIP_HELLO_DEMO1 "Build catapult."
38#define GOSSIP_HELLO_DEMO2 "Build demolisher."
39#define GOSSIP_HELLO_DEMO3 "Build siege engine."
40#define GOSSIP_HELLO_DEMO4 "I cannot build more!"
202 for (
uint8 i = 0; i < graveyard.size(); i++)
203 if (graveyard[i]->GetControlTeamId() == player->
GetTeamId())
219 for (
uint8 i = 0; i < gy.size(); i++)
322 if (
Unit* passenger = vehicle->GetPassenger(0))
325 return teleportTrigger;
405 if (!victim->IsMounted())
409 if (vehicle->GetVehicleInfo()->ID == 244)
480 bp = healEffect->GetAmount();
@ NPC_WINTERGRASP_SIEGE_ENGINE_HORDE
@ NPC_WINTERGRASP_CATAPULT
@ NPC_WINTERGRASP_DEMOLISHER
@ NPC_WINTERGRASP_SIEGE_ENGINE_ALLIANCE
@ BATTLEFIELD_WG_DATA_VEHICLE_A
@ BATTLEFIELD_WG_DATA_MAX_VEHICLE_A
@ BATTLEFIELD_WG_DATA_VEHICLE_H
@ BATTLEFIELD_WG_DATA_MAX_VEHICLE_H
std::vector< BfGraveyard * > GraveyardVect
@ BATTLEFIELD_BATTLEID_WG
#define RegisterCreatureAI(ai_name)
#define RegisterGameObjectAI(ai_name)
#define RegisterSpellScript(spell_script)
void AddGossipItemFor(Player *player, GossipOptionNpc optionNpc, std::string text, uint32 sender, uint32 action)
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const &guid)
void CloseGossipMenuFor(Player *player)
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_FAILED_BAD_TARGETS
@ FACTION_ALLIANCE_GENERIC_WG
@ FACTION_HORDE_GENERIC_WG
@ AURA_EFFECT_HANDLE_REAL
@ SPELL_AURA_PERIODIC_DUMMY
#define SpellCheckCastFn(F)
#define SpellEffectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectRemoveFn(F, I, N, M)
SpellEffectInfo const & GetSpellEffectInfo() const
void PreventDefaultAction()
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectPeriodicHandler > OnEffectPeriodic
AuraEffect * GetEffect(uint8 effIndex) const
bool IsWarTime() const
Return true if battle is start, false if battle is not started.
GraveyardVect GetGraveyardVector() const
void InvitePlayerToQueue(Player *player)
void InvitePlayerToWar(Player *player)
TeamId GetDefenderTeam() const
virtual uint32 GetData(uint32 dataId) const override
bool IsEnabled() const
Return if battlefield is enable.
uint32 GetFaction() const override
static ObjectGuid GetGUID(Object const *o)
static Player * ToPlayer(Object *o)
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, TeleportToOptions options=TELE_TO_NONE, Optional< uint32 > instanceId={})
WorldSession * GetSession() const
void PrepareQuestMenu(ObjectGuid guid)
void SendUpdateWorldState(uint32 variable, uint32 value, bool hidden=false) const
uint32 GetGossipTextId(uint32 menuId, WorldObject *source)
std::unique_ptr< PlayerMenu > PlayerTalkClass
int32 CalcValue(WorldObject const *caster=nullptr, int32 const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
static bool ValidateSpellEffect(std::initializer_list< std::pair< uint32, SpellEffIndex > > effects)
HookList< CheckCastHandler > OnCheckCast
Player * GetHitPlayer() const
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Unit * GetHitUnit() const
int32 GetEffectValue() const
HookList< EffectHandler > OnEffectHitTarget
void SetExplTargetDest(WorldLocation const &loc)
Unit * GetExplTargetUnit() const
SpellCastResult DoCast(uint32 spellId)
Vehicle * GetVehicle() const
bool IsQuestGiver() const
uint32 GetFaction() const override
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Vehicle * GetVehicleKit() const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
constexpr WorldLocation GetWorldLocation() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Creature * SummonTrigger(float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
char const * GetTrinityString(uint32 entry) const
bool OnCheck(Player *source, Unit *target) override
achievement_wg_didnt_stand_a_chance()
bool OnConditionCheck(Condition const *, ConditionSourceInfo &sourceInfo)
condition_is_wintergrasp_alliance()
condition_is_wintergrasp_horde()
bool OnConditionCheck(Condition const *, ConditionSourceInfo &sourceInfo)
void HandleDummy(SpellEffIndex)
SpellCastResult CheckCast()
void HandleScript(SpellEffIndex effIndex)
bool Validate(SpellInfo const *) override
void HandleScript(SpellEffIndex)
void OnRemove(AuraEffect const *aurEff, AuraEffectHandleModes)
bool Validate(SpellInfo const *spellInfo) override
void Refresh(AuraEffect const *aurEff)
Map const * mConditionMap
constexpr float GetPositionX() const
constexpr float GetPositionY() const
constexpr float GetOrientation() const
constexpr float GetPositionZ() const
go_wg_vehicle_teleporter(GameObject *gameObject)
Creature * GetValidVehicle(Creature *cVeh)
bool IsFriendly(Unit *passenger)
void UpdateAI(uint32 diff) override
bool OnGossipHello(Player *player) override
npc_wg_demolisher_engineer(Creature *creature)
bool OnGossipSelect(Player *player, uint32, uint32 gossipListId) override
bool OnGossipSelect(Player *player, uint32, uint32) override
npc_wg_queue(Creature *creature)
void UpdateAI(uint32 diff) override
bool OnGossipHello(Player *player) override
void JustEngagedWith(Unit *) override
bool OnGossipSelect(Player *player, uint32, uint32 gossipListId) override
bool OnGossipHello(Player *player) override
npc_wg_spirit_guide(Creature *creature)
uint32 const vehiclesList[MAX_WINTERGRASP_VEHICLES]
#define GOSSIP_HELLO_DEMO4
#define GOSSIP_HELLO_DEMO2
@ SPELL_WINTERGRASP_TELEPORT_TRIGGER
@ WG_NPCQUEUE_TEXTOPTION_JOIN
@ WG_NPCQUEUE_TEXT_H_NOWAR
@ WG_NPCQUEUE_TEXT_A_QUEUE
@ WG_NPCQUEUE_TEXT_H_QUEUE
@ WG_NPCQUEUE_TEXT_A_NOWAR
@ SPELL_BUILD_DEMOLISHER_FORCE
@ SPELL_ACTIVATE_CONTROL_ARMS
@ SPELL_BUILD_SIEGE_VEHICLE_FORCE_ALLIANCE
@ SPELL_BUILD_SIEGE_VEHICLE_FORCE_HORDE
@ SPELL_BUILD_CATAPULT_FORCE
uint8 const MAX_WINTERGRASP_VEHICLES
@ QUEST_HEALING_WITH_ROSES_HORDE_DEF
@ QUEST_DEFEND_THE_SIEGE_HORDE_ATT
@ QUEST_SHOUTHERN_SABOTAGE_ALLIANCE_DEF
@ QUEST_SLAY_THEM_ALL_HORDE_DEF
@ QUEST_FUELING_THE_DEMOLISHERS_HORDE_DEF
@ QUEST_A_RARE_HERB_ALLIANCE_DEF
@ QUEST_FUELING_THE_DEMOLISHERS_HORDE_ATT
@ QUEST_SLAY_THEM_ALL_HORDE_ATT
@ QUEST_STOP_THE_SIEGE_HORDE_DEF
@ QUEST_WARDING_THE_WALLS_HORDE_DEF
@ QUEST_BONES_AND_ARROWS_ALLIANCE_DEF
@ QUEST_A_RARE_HERB_ALLIANCE_ATT
@ QUEST_HEALING_WITH_ROSES_HORDE_ATT
@ QUEST_BONES_AND_ARROWS_ALLIANCE_ATT
@ QUEST_NO_MERCY_FOR_THE_MERCILESS_ALLIANCE_ATT
@ QUEST_STOP_THE_SIEGE_ALLIANCE_DEF
@ QUEST_NO_MERCY_FOR_THE_MERCILESS_ALLIANCE_DEF
@ QUEST_WARDING_THE_WARRIORS_ALLIANCE_ATT
@ QUEST_TOPPLING_THE_TOWERS_HORDE_DEF
@ QUEST_BONES_AND_ARROWS_HORDE_DEF
@ QUEST_WARDING_THE_WARRIORS_ALLIANCE_DEF
@ QUEST_BONES_AND_ARROWS_HORDE_ATT
@ QUEST_DEFEND_THE_SIEGE_ALLIANCE_ATT
@ QUEST_JINXING_THE_WALLS_HORDE_ATT
@ NPC_WINTERGRASP_CONTROL_ARMS
@ NPC_WORLD_TRIGGER_LARGE_AOI_NOT_IMMUNE_PC_NPC
#define GOSSIP_HELLO_DEMO3
#define GOSSIP_HELLO_DEMO1