Scripts/Obsidian Sanctum: Removed unneeded code causing crashes
Closes issue #5191. --HG-- branch : trunk
This commit is contained in:
@@ -697,10 +697,6 @@ public:
|
||||
else
|
||||
m_uiVesperonTimer -= uiDiff;
|
||||
|
||||
// Don't attack current target if he's not visible for us.
|
||||
if(me->getVictim() && me->getVictim()->HasAura(57874, 0))
|
||||
me->getThreatManager().modifyThreatPercent(me->getVictim(), -100);
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
|
||||
EnterEvadeIfOutOfCombatArea(uiDiff);
|
||||
@@ -1083,10 +1079,6 @@ public:
|
||||
else
|
||||
m_uiShadowBreathTimer -= uiDiff;
|
||||
|
||||
// Don't attack current target if he's not visible for us.
|
||||
if(me->getVictim() && me->getVictim()->HasAura(57874, 0))
|
||||
me->getThreatManager().modifyThreatPercent(me->getVictim(), -100);
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
@@ -1193,10 +1185,6 @@ public:
|
||||
else
|
||||
m_uiShadowBreathTimer -= uiDiff;
|
||||
|
||||
// Don't attack current target if he's not visible for us.
|
||||
if (me->getVictim()->HasAura(57874, 0))
|
||||
me->getThreatManager().modifyThreatPercent(me->getVictim(), -100);
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
@@ -1294,10 +1282,6 @@ public:
|
||||
else
|
||||
m_uiShadowBreathTimer -= uiDiff;
|
||||
|
||||
// Don't attack current target if he's not visible for us.
|
||||
if(me->getVictim() && me->getVictim()->HasAura(57874, 0))
|
||||
me->getThreatManager().modifyThreatPercent(me->getVictim(), -100);
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user