From 674b168addbc35f1faaa2e72eacee6edf5e0d457 Mon Sep 17 00:00:00 2001 From: acidmanifesto Date: Fri, 28 Jan 2022 11:26:15 -0500 Subject: [PATCH] fix (core): Delay added so spell animation plays on unit death (#10394) * fix (core): Delay added so spell animation plays on unit death Unit death not showing full spell animation. This delay of 400ms provides that opportunity for it to not be nerfed. * Notes added. --- src/server/game/Entities/Unit/Unit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 5009ed0d8..b27e7cce8 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -977,7 +977,9 @@ uint32 Unit::DealDamage(Unit* attacker, Unit* victim, uint32 damage, CleanDamage //if (attacker && victim->GetTypeId() == TYPEID_PLAYER && victim != attacker) //victim->ToPlayer()->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_TOTAL_DAMAGE_RECEIVED, health); // pussywizard: optimization - + //Pussywarlock Elite MDic - Unit death not showing full spell animation. + //This delay of 400ms provides that opportunity for it to not be nerfed. + std::this_thread::sleep_for(400ms); Unit::Kill(attacker, victim, durabilityLoss, cleanDamage ? cleanDamage->attackType : BASE_ATTACK, spellProto); } else