Permalink
Browse files

Instance/IcecrownCitadel: Set Valithria unattackable at beginning of …

…encounter, fixes issue with target selection of some NPCs
  • Loading branch information...
1 parent 941473d commit ea1479b1826dff1af48e63cd14053ab6286bb20b @Elron103 committed Mar 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/server/scripts/Northrend/IcecrownCitadel/boss_valithria_dreamwalker.cpp
@@ -309,6 +309,7 @@ class boss_valithria_dreamwalker : public CreatureScript
_events.Reset();
me->SetHealth(_spawnHealth);
me->SetReactState(REACT_PASSIVE);
+ me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
me->LoadCreaturesAddon(true);
// immune to percent heals
me->ApplySpellImmune(0, IMMUNITY_STATE, SPELL_AURA_OBS_MOD_HEALTH, true);
@@ -763,6 +764,9 @@ class npc_risen_archmage : public CreatureScript
if (_instance)
{
+ if (Creature* valithria = ObjectAccessor::GetCreature(*me, _instance->GetData64(DATA_VALITHRIA_DREAMWALKER)))
+ valithria->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
+
if (Creature* lichKing = ObjectAccessor::GetCreature(*me, _instance->GetData64(DATA_VALITHRIA_LICH_KING)))
lichKing->AI()->DoZoneInCombat();

0 comments on commit ea1479b

Please sign in to comment.