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
|
else
|
||||||
m_uiVesperonTimer -= uiDiff;
|
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();
|
DoMeleeAttackIfReady();
|
||||||
|
|
||||||
EnterEvadeIfOutOfCombatArea(uiDiff);
|
EnterEvadeIfOutOfCombatArea(uiDiff);
|
||||||
@@ -1083,10 +1079,6 @@ public:
|
|||||||
else
|
else
|
||||||
m_uiShadowBreathTimer -= uiDiff;
|
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();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1193,10 +1185,6 @@ public:
|
|||||||
else
|
else
|
||||||
m_uiShadowBreathTimer -= uiDiff;
|
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();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1294,10 +1282,6 @@ public:
|
|||||||
else
|
else
|
||||||
m_uiShadowBreathTimer -= uiDiff;
|
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();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user