mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 12:09:14 +01:00
Core/Scripts: Addition to previous commit.
This commit is contained in:
@@ -1254,6 +1254,7 @@ enum TheCleansing
|
||||
QUEST_THE_CLEANSING_HORDE = 11317,
|
||||
QUEST_THE_CLEANSING_ALLIANCE = 11322,
|
||||
SPELL_CLEANSING_SOUL = 43351,
|
||||
SPELL_RECENT_MEDITATION = 61720,
|
||||
};
|
||||
|
||||
class go_frostblade_shrine : public GameObjectScript
|
||||
@@ -1263,12 +1264,13 @@ public:
|
||||
|
||||
bool OnGossipHello(Player* player, GameObject* go)
|
||||
{
|
||||
if (player->GetQuestStatus(QUEST_THE_CLEANSING_HORDE) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(QUEST_THE_CLEANSING_ALLIANCE) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
go->UseDoorOrButton(10);
|
||||
player->CastSpell(player,SPELL_CLEANSING_SOUL);
|
||||
}
|
||||
return true;
|
||||
if (!player->HasAura(SPELL_RECENT_MEDITATION))
|
||||
if (player->GetQuestStatus(QUEST_THE_CLEANSING_HORDE) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(QUEST_THE_CLEANSING_ALLIANCE) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
go->UseDoorOrButton(10);
|
||||
player->CastSpell(player, SPELL_CLEANSING_SOUL);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user