fix(DB/Gossip): add restore 'Keys to the Focusing Iris' option (#25228)
Co-authored-by: avarishd <46330494+avarishd@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "CreatureScript.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "SpellAuras.h"
|
||||
|
||||
enum Orphans
|
||||
@@ -628,9 +629,33 @@ private:
|
||||
/*######
|
||||
## npc_cw_alexstrasza_trigger
|
||||
######*/
|
||||
enum eAlexstrasza
|
||||
{
|
||||
SPELL_KEY_TO_FOCUSING_IRIS = 60989,
|
||||
SPELL_HEROIC_KEY_TO_FOCUSING_IRIS = 60992,
|
||||
};
|
||||
|
||||
struct npc_alexstraza_the_lifebinder : public ScriptedAI
|
||||
{
|
||||
npc_alexstraza_the_lifebinder(Creature* creature) : ScriptedAI(creature) {}
|
||||
explicit npc_alexstraza_the_lifebinder(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
void sGossipSelect(Player* player, uint32 /*sender*/, uint32 action) override
|
||||
{
|
||||
ClearGossipMenuFor(player);
|
||||
switch (action)
|
||||
{
|
||||
case 0:
|
||||
CloseGossipMenuFor(player);
|
||||
player->CastSpell(player, SPELL_KEY_TO_FOCUSING_IRIS, false);
|
||||
break;
|
||||
case 1:
|
||||
CloseGossipMenuFor(player);
|
||||
player->CastSpell(player, SPELL_HEROIC_KEY_TO_FOCUSING_IRIS, false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
@@ -653,6 +678,8 @@ struct npc_alexstraza_the_lifebinder : public ScriptedAI
|
||||
case 2:
|
||||
me->SetOrientation(me->GetHomePosition().GetOrientation());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -767,8 +794,8 @@ struct npc_alexstraza_the_lifebinder : public ScriptedAI
|
||||
}
|
||||
|
||||
private:
|
||||
int8 phase;
|
||||
uint32 timer;
|
||||
int8 phase{};
|
||||
uint32 timer{};
|
||||
ObjectGuid playerGUID;
|
||||
ObjectGuid orphanGUID;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user