Core/Scripts: Reliquary of Souls: fix encounter start and essence phases.

This commit is contained in:
w1sht0l1v3
2012-09-13 03:40:17 +03:00
parent b62ad5a955
commit 2ff0910d67

View File

@@ -181,6 +181,23 @@ public:
me->RemoveAurasDueToSpell(SPELL_SUBMERGE);
}
void MoveInLineOfSight(Unit* who)
{
if (!who)
return;
if (me->isInCombat())
return;
if (who->GetTypeId() != TYPEID_PLAYER)
return;
if (me->GetDistance(who) > 50.0f)
return;
AttackStartNoMove(who);
}
void EnterCombat(Unit* who)
{
me->AddThreat(who, 10000.0f);
@@ -412,6 +429,7 @@ public:
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
me->Yell(SUFF_SAY_RECAP, LANG_UNIVERSAL, 0);
DoScriptText(SUFF_SAY_RECAP, me);
me->SetReactState(REACT_PASSIVE);
}
}
@@ -532,6 +550,7 @@ public:
damage = 0;
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
DoScriptText(SUFF_SAY_RECAP, me);
me->SetReactState(REACT_PASSIVE);
}
else
{