Implement OP_CancelSneakHide

Didn't test every client, but they should all work
This commit is contained in:
Michael Cook (mackal)
2016-06-30 17:50:31 -04:00
parent a64343689c
commit 54de212214
12 changed files with 39 additions and 3 deletions
+7 -3
View File
@@ -5854,10 +5854,8 @@ int Mob::CheckBaneDamage(const ItemInst *item)
return damage;
}
void Mob::CommonBreakInvisible()
void Mob::CancelSneakHide()
{
BreakInvisibleSpells();
if (hidden || improved_hidden) {
hidden = false;
improved_hidden = false;
@@ -5871,6 +5869,12 @@ void Mob::CommonBreakInvisible()
}
}
void Mob::CommonBreakInvisible()
{
BreakInvisibleSpells();
CancelSneakHide();
}
#ifdef BOTS
bool Mob::JoinHealRotationTargetPool(std::shared_ptr<HealRotation>* heal_rotation)
{