Merge pull request #5825 from w1sht0l1v3/ToCr

Scripts/ToCr/Val'kyr Twins: Fix orb targeting.
This commit is contained in:
Machiavelli
2012-03-21 13:25:42 -07:00
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();