Scripts: Removed duplicate target selection function (SelectUnit), there is only SelectTarget now
This commit is contained in:
1 parent
6e1e6957e2
commit
c2c40a4750
169 files changed
+420
-523
No files matched your search
@@ -647,7 +647,7 @@ public:
|
||||
|
||||
if (uiFishyScentTimer <= uiDiff)
|
||||
{
|
||||
if (Unit *pAffected = SelectUnit(SELECT_TARGET_RANDOM,0))
|
||||
if (Unit *pAffected = SelectTarget(SELECT_TARGET_RANDOM,0))
|
||||
{
|
||||
DoCast(pAffected, SPELL_FISHY_SCENT);
|
||||
AffectedGUID = pAffected->GetGUID();
|
||||
@@ -768,14 +768,14 @@ public:
|
||||
|
||||
if (uiUppercutTimer <= uiDiff)
|
||||
{
|
||||
if (Unit* pTarget = SelectUnit(SELECT_TARGET_NEAREST, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_NEAREST, 0))
|
||||
DoCast(pTarget, SPELL_UPPERCUT);
|
||||
uiUppercutTimer = 12000;
|
||||
} else uiUppercutTimer -= uiDiff;
|
||||
|
||||
if (uiChargeTimer <= uiDiff)
|
||||
{
|
||||
if (Unit* pTarget = SelectUnit(SELECT_TARGET_FARTHEST, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_FARTHEST, 0))
|
||||
DoCast(pTarget, SPELL_CHARGE);
|
||||
uiChargeTimer = 15000;
|
||||
} else uiChargeTimer -= uiDiff;
|
||||
@@ -985,7 +985,7 @@ public:
|
||||
|
||||
if (uiKnockAwayTimer <= uiDiff)
|
||||
{
|
||||
if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
{
|
||||
if (pTarget && pTarget->isAlive())
|
||||
DoCast(pTarget, SPELL_KNOCK_AWAY);
|
||||
@@ -995,7 +995,7 @@ public:
|
||||
|
||||
if (uiStinkyBeardTimer <= uiDiff)
|
||||
{
|
||||
if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
{
|
||||
if (pTarget && pTarget->isAlive())
|
||||
DoCast(pTarget, SPELL_STINKY_BEARD);
|
||||
|
||||
Reference in new issue
Block a user