mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Scripts/ZulGurub): Improvements to Madonkir's melee spells. (#12096)
Overpower is casted on dodge. Execute is casted when victim is below 20% health. Cleave is casted when there is at least 5 targets in melee range. Fixes #11747
This commit is contained in:
@@ -15737,9 +15737,9 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u
|
||||
else // For attacker
|
||||
{
|
||||
// Overpower on victim dodge
|
||||
if (procExtra & PROC_EX_DODGE )
|
||||
if (procExtra & PROC_EX_DODGE)
|
||||
{
|
||||
if (GetTypeId() == TYPEID_PLAYER && getClass() == CLASS_WARRIOR)
|
||||
if (getClass() == CLASS_WARRIOR)
|
||||
{
|
||||
AddComboPoints(target, 1);
|
||||
StartReactiveTimer(REACTIVE_OVERPOWER);
|
||||
@@ -16530,8 +16530,10 @@ void Unit::UpdateReactives(uint32 p_time)
|
||||
ModifyAuraState(AURA_STATE_HUNTER_PARRY, false);
|
||||
break;
|
||||
case REACTIVE_OVERPOWER:
|
||||
if (getClass() == CLASS_WARRIOR && GetTypeId() == TYPEID_PLAYER)
|
||||
if (getClass() == CLASS_WARRIOR)
|
||||
{
|
||||
ClearComboPoints();
|
||||
}
|
||||
break;
|
||||
case REACTIVE_WOLVERINE_BITE:
|
||||
if (IsHunterPet())
|
||||
|
||||
Reference in New Issue
Block a user