mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 08:16:08 +00:00
fix(Core/Spells): Wolverine Bite (#10312)
- Closes #10293 - Source: TrinityCore
This commit is contained in:
@@ -15588,14 +15588,12 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
|
||||
StartReactiveTimer(REACTIVE_OVERPOWER);
|
||||
}
|
||||
}
|
||||
|
||||
// Wolverine Bite
|
||||
if (procExtra & PROC_EX_CRITICAL_HIT)
|
||||
if ((procExtra & PROC_HIT_CRITICAL) && IsHunterPet())
|
||||
{
|
||||
if (GetTypeId() == TYPEID_UNIT && IsPet())
|
||||
{
|
||||
ModifyAuraState(AURA_STATE_DEFENSE, true);
|
||||
StartReactiveTimer( REACTIVE_DEFENSE );
|
||||
}
|
||||
AddComboPoints(target, 1);
|
||||
StartReactiveTimer(REACTIVE_WOLVERINE_BITE);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16369,6 +16367,10 @@ void Unit::UpdateReactives(uint32 p_time)
|
||||
if (getClass() == CLASS_WARRIOR && GetTypeId() == TYPEID_PLAYER)
|
||||
ClearComboPoints();
|
||||
break;
|
||||
case REACTIVE_WOLVERINE_BITE:
|
||||
if (IsHunterPet())
|
||||
ClearComboPoints();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user