Make more usage of CancelSneakHide

This commit is contained in:
Michael Cook (mackal)
2016-06-30 21:49:00 -04:00
parent 54de212214
commit 37b46d1289
2 changed files with 12 additions and 43 deletions
+1 -11
View File
@@ -4438,17 +4438,7 @@ void Mob::CommonBreakInvisibleFromCombat()
invisible_animals = false;
}
if(hidden || improved_hidden){
hidden = false;
improved_hidden = false;
auto outapp = new EQApplicationPacket(OP_SpawnAppearance, sizeof(SpawnAppearance_Struct));
SpawnAppearance_Struct* sa_out = (SpawnAppearance_Struct*)outapp->pBuffer;
sa_out->spawn_id = GetID();
sa_out->type = 0x03;
sa_out->parameter = 0;
entity_list.QueueClients(this, outapp, true);
safe_delete(outapp);
}
CancelSneakHide();
if (spellbonuses.NegateIfCombat)
BuffFadeByEffect(SE_NegateIfCombat);