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_HORDE = 11317,
|
||||||
QUEST_THE_CLEANSING_ALLIANCE = 11322,
|
QUEST_THE_CLEANSING_ALLIANCE = 11322,
|
||||||
SPELL_CLEANSING_SOUL = 43351,
|
SPELL_CLEANSING_SOUL = 43351,
|
||||||
|
SPELL_RECENT_MEDITATION = 61720,
|
||||||
};
|
};
|
||||||
|
|
||||||
class go_frostblade_shrine : public GameObjectScript
|
class go_frostblade_shrine : public GameObjectScript
|
||||||
@@ -1263,10 +1264,11 @@ public:
|
|||||||
|
|
||||||
bool OnGossipHello(Player* player, GameObject* go)
|
bool OnGossipHello(Player* player, GameObject* go)
|
||||||
{
|
{
|
||||||
|
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)
|
if (player->GetQuestStatus(QUEST_THE_CLEANSING_HORDE) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(QUEST_THE_CLEANSING_ALLIANCE) == QUEST_STATUS_INCOMPLETE)
|
||||||
{
|
{
|
||||||
go->UseDoorOrButton(10);
|
go->UseDoorOrButton(10);
|
||||||
player->CastSpell(player,SPELL_CLEANSING_SOUL);
|
player->CastSpell(player, SPELL_CLEANSING_SOUL);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user