Core/Misc: Fix parry-haste mechanic.
Port From (https://github.com/TrinityCore/TrinityCore/commit/cc0940fe25bc4627ad0be47243992a4733ab43a8)
This commit is contained in:
@@ -2662,7 +2662,7 @@ namespace Game.Entities
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (damageInfo.TargetState == VictimState.Parry &&
|
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
|
// Get attack timers
|
||||||
float offtime = victim.GetAttackTimer(WeaponAttackType.OffAttack);
|
float offtime = victim.GetAttackTimer(WeaponAttackType.OffAttack);
|
||||||
|
|||||||
Reference in New Issue
Block a user