mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Scripts: Missing spawn after boss Varos and Urom deaths.Needed for a quest chain also.
This commit is contained in:
@@ -289,6 +289,7 @@ public:
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
_JustDied();
|
||||
DoCast(me, SPELL_DEATH_SPELL, true); // we cast the spell as triggered or the summon effect does not occur
|
||||
}
|
||||
|
||||
void LeaveCombat()
|
||||
|
||||
@@ -144,8 +144,8 @@ public:
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
_JustDied();
|
||||
|
||||
Talk(SAY_DEATH);
|
||||
DoCast(me, SPELL_DEATH_SPELL, true); // we cast the spell as triggered or the summon effect does not occur
|
||||
}
|
||||
private:
|
||||
bool firstCoreEnergize;
|
||||
|
||||
@@ -50,6 +50,12 @@ enum Drakes
|
||||
NPC_ETERNOS = 27659
|
||||
};
|
||||
|
||||
enum Says
|
||||
{
|
||||
SAY_VAROS = 0,
|
||||
SAY_UROM = 1
|
||||
};
|
||||
|
||||
class npc_oculus_drake : public CreatureScript
|
||||
{
|
||||
public:
|
||||
@@ -174,7 +180,38 @@ public:
|
||||
|
||||
};
|
||||
|
||||
class npc_image_belgaristrasz : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_image_belgaristrasz() : CreatureScript("npc_image_belgaristrasz") { }
|
||||
|
||||
struct npc_image_belgaristraszAI : public ScriptedAI
|
||||
{
|
||||
npc_image_belgaristraszAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
void IsSummonedBy(Unit* summoner)
|
||||
{
|
||||
if (summoner->GetEntry() == NPC_VAROS)
|
||||
{
|
||||
Talk(SAY_VAROS);
|
||||
me->DespawnOrUnsummon(60000);
|
||||
}
|
||||
if (summoner->GetEntry() == NPC_UROM)
|
||||
{
|
||||
Talk(SAY_UROM);
|
||||
me->DespawnOrUnsummon(60000);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
{
|
||||
return new npc_image_belgaristraszAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_oculus()
|
||||
{
|
||||
new npc_oculus_drake();
|
||||
new npc_image_belgaristrasz();
|
||||
}
|
||||
|
||||
@@ -71,6 +71,7 @@ enum OculusWorldStates
|
||||
|
||||
enum OculusSpells
|
||||
{
|
||||
SPELL_CENTRIFUGE_SHIELD = 50053
|
||||
SPELL_CENTRIFUGE_SHIELD = 50053,
|
||||
SPELL_DEATH_SPELL = 50415
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user