mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +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;
|
||||
}
|
||||
|
||||
@@ -1163,12 +1163,14 @@ struct AttackPosition {
|
||||
|
||||
enum ReactiveType
|
||||
{
|
||||
REACTIVE_DEFENSE = 0,
|
||||
REACTIVE_HUNTER_PARRY = 1,
|
||||
REACTIVE_OVERPOWER = 2
|
||||
REACTIVE_DEFENSE = 0,
|
||||
REACTIVE_HUNTER_PARRY = 1,
|
||||
REACTIVE_OVERPOWER = 2,
|
||||
REACTIVE_WOLVERINE_BITE = 3,
|
||||
|
||||
MAX_REACTIVE
|
||||
};
|
||||
|
||||
#define MAX_REACTIVE 3
|
||||
#define SUMMON_SLOT_PET 0
|
||||
#define SUMMON_SLOT_TOTEM 1
|
||||
#define MAX_TOTEM_SLOT 5
|
||||
|
||||
Reference in New Issue
Block a user