fix(Core/Spells): Wolverine Bite (#10312)

- Closes #10293
- Source: TrinityCore
This commit is contained in:
UltraNix
2022-02-04 19:13:30 +01:00
committed by GitHub
parent 3123badac6
commit 6c0113c9a5
2 changed files with 14 additions and 10 deletions
+8 -6
View File
@@ -15588,14 +15588,12 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
StartReactiveTimer(REACTIVE_OVERPOWER); StartReactiveTimer(REACTIVE_OVERPOWER);
} }
} }
// Wolverine Bite // Wolverine Bite
if (procExtra & PROC_EX_CRITICAL_HIT) if ((procExtra & PROC_HIT_CRITICAL) && IsHunterPet())
{ {
if (GetTypeId() == TYPEID_UNIT && IsPet()) AddComboPoints(target, 1);
{ StartReactiveTimer(REACTIVE_WOLVERINE_BITE);
ModifyAuraState(AURA_STATE_DEFENSE, true);
StartReactiveTimer( REACTIVE_DEFENSE );
}
} }
} }
} }
@@ -16369,6 +16367,10 @@ void Unit::UpdateReactives(uint32 p_time)
if (getClass() == CLASS_WARRIOR && GetTypeId() == TYPEID_PLAYER) if (getClass() == CLASS_WARRIOR && GetTypeId() == TYPEID_PLAYER)
ClearComboPoints(); ClearComboPoints();
break; break;
case REACTIVE_WOLVERINE_BITE:
if (IsHunterPet())
ClearComboPoints();
break;
default: default:
break; break;
} }
+6 -4
View File
@@ -1163,12 +1163,14 @@ struct AttackPosition {
enum ReactiveType enum ReactiveType
{ {
REACTIVE_DEFENSE = 0, REACTIVE_DEFENSE = 0,
REACTIVE_HUNTER_PARRY = 1, REACTIVE_HUNTER_PARRY = 1,
REACTIVE_OVERPOWER = 2 REACTIVE_OVERPOWER = 2,
REACTIVE_WOLVERINE_BITE = 3,
MAX_REACTIVE
}; };
#define MAX_REACTIVE 3
#define SUMMON_SLOT_PET 0 #define SUMMON_SLOT_PET 0
#define SUMMON_SLOT_TOTEM 1 #define SUMMON_SLOT_TOTEM 1
#define MAX_TOTEM_SLOT 5 #define MAX_TOTEM_SLOT 5