Core/Entities: Fix flag CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN implementation. (#17548)
This commit is contained in:
1 parent
5eb80cdfde
commit
8cdb25f134
1 file changed
+2
-1
@@ -1325,7 +1325,8 @@ void Unit::DealMeleeDamage(CalcDamageInfo* damageInfo, bool durabilityLoss)
|
||||
if (damageInfo->blocked_amount && damageInfo->TargetState != VICTIMSTATE_BLOCKS)
|
||||
victim->HandleEmoteCommand(EMOTE_ONESHOT_PARRY_SHIELD);
|
||||
|
||||
if (damageInfo->TargetState == VICTIMSTATE_PARRY)
|
||||
if (damageInfo->TargetState == VICTIMSTATE_PARRY &&
|
||||
(GetTypeId() != TYPEID_UNIT || (ToCreature()->GetCreatureTemplate()->flags_extra & CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN) == 0))
|
||||
{
|
||||
// Get attack timers
|
||||
float offtime = float(victim->getAttackTimer(OFF_ATTACK));
|
||||
|
||||
Reference in new issue
Block a user