Scripts/ToCr/Val'kyr Twins: Fix orb targeting.

Add missing triggers.
This commit is contained in:
w1sht0l1v3
2012-03-21 22:17:34 +02:00
parent 48799f3376
commit e8c3cb1c10
2 changed files with 73 additions and 4 deletions
@@ -619,8 +619,7 @@ public:
{
if (m_uiRangeCheckTimer < uiDiff)
{
if (Unit* target = me->SelectNearestTarget(2.0f))
if (target->GetTypeId() == TYPEID_PLAYER && target->isAlive())
if (Player* target = me->SelectNearestPlayer(2.0f))
{
DoCastAOE(SPELL_UNLEASHED_DARK);
me->GetMotionMaster()->MoveIdle();
@@ -661,8 +660,7 @@ public:
{
if (m_uiRangeCheckTimer < uiDiff)
{
if (Unit* target = me->SelectNearestTarget(2.0f))
if (target->GetTypeId() == TYPEID_PLAYER && target->isAlive())
if (Player* target = me->SelectNearestPlayer(2.0f))
{
DoCastAOE(SPELL_UNLEASHED_LIGHT);
me->GetMotionMaster()->MoveIdle();