Scripts/Nexus: Fixed reseting of achievement Chaos Theory
This commit is contained in:
@@ -60,8 +60,7 @@ Position const RiftLocation[6] =
|
||||
{ 651.72f, -297.44f, -9.37f, 0.0f }
|
||||
};
|
||||
|
||||
#define ACTION_RIFT_DEAD 1
|
||||
#define DATA_CHAOS_THEORY 2
|
||||
#define DATA_CHAOS_THEORY 1
|
||||
|
||||
class boss_anomalus : public CreatureScript
|
||||
{
|
||||
@@ -110,12 +109,6 @@ class boss_anomalus : public CreatureScript
|
||||
instance->SetData(DATA_ANOMALUS_EVENT, DONE);
|
||||
}
|
||||
|
||||
void DoAction(int32 const action)
|
||||
{
|
||||
if (action == ACTION_RIFT_DEAD)
|
||||
chaosTheory = false;
|
||||
}
|
||||
|
||||
uint32 GetData(uint32 type)
|
||||
{
|
||||
if (type == DATA_CHAOS_THEORY)
|
||||
@@ -124,10 +117,10 @@ class boss_anomalus : public CreatureScript
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SetData(uint32 id, uint32 data)
|
||||
void SummonedCreatureDies(Creature* summoned, Unit* who)
|
||||
{
|
||||
if (id == DATA_CHAOS_THEORY)
|
||||
chaosTheory = data ? true : false;
|
||||
if (summoned->GetEntry() == MOB_CHAOTIC_RIFT)
|
||||
chaosTheory = false;
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 const diff)
|
||||
@@ -219,12 +212,6 @@ class mob_chaotic_rift : public CreatureScript
|
||||
DoCast(me, SPELL_ARCANEFORM, false);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*who*/)
|
||||
{
|
||||
if (Creature* Anomalus = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_ANOMALUS)))
|
||||
Anomalus->AI()->DoAction(ACTION_RIFT_DEAD);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 const diff)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
|
||||
Reference in New Issue
Block a user