Skip to content

Commit

Permalink
Merge pull request #3 from lellonicole/master
Browse files Browse the repository at this point in the history
[Core/Boss] Oculus/Orum, fix spawn mob position
  • Loading branch information
Yehonal committed Jul 10, 2016
2 parents 1b1b116 + c1db268 commit 426321a
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp
Expand Up @@ -124,7 +124,7 @@ class boss_urom : public CreatureScript
me->ApplySpellImmune(0, IMMUNITY_ID, 49838, true);
}

void EnterCombat(Unit* who)
void EnterCombat(Unit* /*who*/)
{
if( lock )
return;
Expand Down Expand Up @@ -198,32 +198,54 @@ class boss_urom : public CreatureScript
me->ResetPlayerDamageReq();
}

void JustDied(Unit* killer)
void JustDied(Unit* /*killer*/)
{
Talk(SAY_DEATH);

if (pInstance)
pInstance->SetData(DATA_UROM, DONE);
}

void KilledUnit(Unit *victim)
void KilledUnit(Unit* /*victim*/)
{
Talk(SAY_PLAYER_KILL);
}

void SpellHit(Unit* caster, const SpellInfo* spell)
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
{
switch( spell->Id )
{
case SPELL_SUMMON_MENAGERIE_1:
{
for( uint8 i=0; i<4; ++i )
me->SummonCreature(summons[0][i], cords[0][0] + ((i%2) ? 4.0f : -4.0f), cords[0][1] + (i<2 ? 4.0f : -4.0f), cords[0][2], 0.0f, TEMPSUMMON_TIMED_DESPAWN, 300000);
uint8 phase = GetPhaseByCurrentPosition();
me->SetHomePosition(cords[phase+1][0], cords[phase+1][1], cords[phase+1][2], cords[phase+1][3]);
me->DestroyForNearbyPlayers();
LeaveCombat();
me->CastSpell(me, SPELL_EVOCATION, true);
releaseLockTimer = 1;
}
break;
case SPELL_SUMMON_MENAGERIE_2:
{
for( uint8 i=0; i<4; ++i )
me->SummonCreature(summons[1][i], cords[1][0] + ((i%2) ? 4.0f : -4.0f), cords[1][1] + (i<2 ? 4.0f : -4.0f), cords[1][2], 0.0f, TEMPSUMMON_TIMED_DESPAWN, 300000);
uint8 phase = GetPhaseByCurrentPosition();
me->SetHomePosition(cords[phase+1][0], cords[phase+1][1], cords[phase+1][2], cords[phase+1][3]);
me->DestroyForNearbyPlayers();
LeaveCombat();
me->CastSpell(me, SPELL_EVOCATION, true);
releaseLockTimer = 1;
}
break;
case SPELL_SUMMON_MENAGERIE_3:
{
me->DestroyForNearbyPlayers();
uint8 phase = GetPhaseByCurrentPosition();
for( uint8 i=0; i<4; ++i )
me->SummonCreature(summons[phase][i], cords[phase][0] + ((i%2) ? 4.0f : -4.0f), cords[phase][1] + (i<2 ? 4.0f : -4.0f), cords[phase][2], 0.0f, TEMPSUMMON_TIMED_DESPAWN, 300000);
+ me->SummonCreature(summons[2][i], cords[2][0] + ((i%2) ? 4.0f : -4.0f), cords[2][1] + (i<2 ? 4.0f : -4.0f), cords[2][2], 0.0f, TEMPSUMMON_TIMED_DESPAWN, 300000);
uint8 phase = GetPhaseByCurrentPosition();
me->SetHomePosition(cords[phase+1][0], cords[phase+1][1], cords[phase+1][2], cords[phase+1][3]);
me->DestroyForNearbyPlayers();
LeaveCombat();
me->CastSpell(me, SPELL_EVOCATION, true);
releaseLockTimer = 1;
Expand All @@ -249,7 +271,7 @@ class boss_urom : public CreatureScript
}
}

void MoveInLineOfSight(Unit* who) {}
void MoveInLineOfSight(Unit* /*who*/) {}

void UpdateAI(uint32 diff)
{
Expand Down

0 comments on commit 426321a

Please sign in to comment.