Core/Misc: Fix parry-haste mechanic.

Port From (https://github.com/TrinityCore/TrinityCore/commit/cc0940fe25bc4627ad0be47243992a4733ab43a8)
This commit is contained in:
hondacrx
2022-01-04 20:04:11 -05:00
parent 9a9cc2d4e1
commit b3eb0ef4c5
+1 -1
View File
@@ -2662,7 +2662,7 @@ namespace Game.Entities
return;
if (damageInfo.TargetState == VictimState.Parry &&
(!IsTypeId(TypeId.Unit) || !ToCreature().GetCreatureTemplate().FlagsExtra.HasAnyFlag(CreatureFlagsExtra.NoParryHasten)))
(!victim.IsCreature() || victim.ToCreature().GetCreatureTemplate().FlagsExtra.HasAnyFlag(CreatureFlagsExtra.NoParryHasten)))
{
// Get attack timers
float offtime = victim.GetAttackTimer(WeaponAttackType.OffAttack);