TrinityCore
Loading...
Searching...
No Matches
zone_tirisfal_glades.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "ScriptMgr.h"
19#include "Player.h"
20#include "PlayerChoice.h"
21
35
36// 248 - Playerchoice
52
53// 40706 - A Legend You Can Hold
55{
56public:
57 quest_a_legend_you_can_hold() : QuestScript("quest_a_legend_you_can_hold") {}
58
59 void OnQuestStatusChange(Player* player, Quest const* /*quest*/, QuestStatus /*oldStatus*/, QuestStatus newStatus) override
60 {
61 if (newStatus == QUEST_STATUS_NONE)
63 }
64};
65
67{
68 // Playerchoice
70
71 // Quest
73}
uint16_t uint16
Definition Define.h:155
QuestStatus
Definition QuestDef.h:146
@ QUEST_STATUS_NONE
Definition QuestDef.h:147
@ TRIGGERED_FULL_MASK
Used when doing CastSpell with triggered == true.
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2217
void OnResponse(WorldObject *, Player *player, PlayerChoice const *, PlayerChoiceResponse const *response, uint16)
void OnQuestStatusChange(Player *player, Quest const *, QuestStatus, QuestStatus newStatus) override
TriggerCastFlags TriggerFlags
ALegendYouCanHoldPriest
@ PLAYERCHOICE_RESPONSE_CHOOSE_SHADOW_WEAPON
@ SPELL_FORCE_SHADOW_SPEC
@ PLAYERCHOICE_RESPONSE_CHOOSE_DISCIPLINE
@ SPELL_FORCE_HOLY_SPEC
@ PLAYERCHOICE_RESPONSE_CHOOSE_HOLY_WEAPON
@ SPELL_PLAYERCHOICE_REMOVE_TRACKING_QUESTS_PRIEST
@ SPELL_FORCE_DISCIPLINE_SPEC
void AddSC_tirisfal_glades()