mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 00:53:46 +00:00
fix(Scripts/Spells): Update Death Knight Ebon Gargoyle auras and damage, and Ghoul auras (#22398)
Co-authored-by: Tereneckla <Tereneckla@pm.me>
This commit is contained in:
@@ -1345,11 +1345,14 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
SetCreateMana(28 + 10 * petlevel);
|
||||
SetCreateHealth(28 + 30 * petlevel);
|
||||
}
|
||||
|
||||
AddAura(SPELL_HUNTER_PET_SCALING_04, this);
|
||||
AddAura(SPELL_SUMMON_HEAL, this);
|
||||
AddAura(SPELL_DK_PET_SCALING_01, this);
|
||||
AddAura(SPELL_DK_PET_SCALING_02, this);
|
||||
AddAura(SPELL_DK_PET_SCALING_03, this);
|
||||
AddAura(SPELL_NIGHT_OF_THE_DEAD_AVOIDANCE, this);
|
||||
AddAura(SPELL_ORC_RACIAL_COMMAND_DK, this);
|
||||
AddAura(SPELL_PET_SCALING_MASTER_03, this);
|
||||
AddAura(SPELL_PET_SCALING_MASTER_06, this);
|
||||
break;
|
||||
}
|
||||
case NPC_BLOODWORM:
|
||||
@@ -1401,9 +1404,9 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
// 100% energy after summon
|
||||
SetPower(POWER_ENERGY, GetMaxPower(POWER_ENERGY));
|
||||
|
||||
// xinef: fixes orc death knight command racial
|
||||
if (owner->getRace() == RACE_ORC)
|
||||
CastSpell(this, SPELL_ORC_RACIAL_COMMAND_DK, true, nullptr, nullptr, owner->GetGUID());
|
||||
AddAura(SPELL_ORC_RACIAL_COMMAND_DK, this);
|
||||
|
||||
AddAura(SPELL_RISEN_GHOUL_SELF_STUN, this);
|
||||
|
||||
// Avoidance, Night of the Dead
|
||||
if (Aura* aur = AddAura(SPELL_NIGHT_OF_THE_DEAD_AVOIDANCE, this))
|
||||
@@ -1411,13 +1414,16 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
if (aur->GetEffect(0))
|
||||
aur->GetEffect(0)->SetAmount(-aurEff->GetSpellInfo()->Effects[EFFECT_2].CalcValue());
|
||||
|
||||
AddAura(SPELL_HUNTER_PET_SCALING_04, this);
|
||||
// Added to perm ghoul by default
|
||||
if (!IsPet())
|
||||
{
|
||||
AddAura(SPELL_DK_PET_SCALING_01, this);
|
||||
AddAura(SPELL_DK_PET_SCALING_02, this);
|
||||
AddAura(SPELL_DK_PET_SCALING_03, this);
|
||||
}
|
||||
|
||||
AddAura(SPELL_PET_SCALING_MASTER_03, this);
|
||||
AddAura(SPELL_PET_SCALING_MASTER_06, this);
|
||||
}
|
||||
|
||||
sScriptMgr->OnInitStatsForLevel(this, petlevel);
|
||||
|
||||
@@ -134,6 +134,7 @@ enum NPCEntries
|
||||
enum PetScalingSpells
|
||||
{
|
||||
SPELL_PET_AVOIDANCE = 32233,
|
||||
SPELL_PET_SCALING_MASTER_03 = 67557, // Serverside - Pet Scaling - Master Spell 03 - Intellect, Spirit, Resilience
|
||||
SPELL_PET_SCALING_MASTER_06 = 67561, // Serverside - Pet Scaling - Master Spell 06 - Spell Hit, Expertise, Spell Penetration
|
||||
|
||||
// Hunter
|
||||
@@ -197,6 +198,8 @@ enum PetScalingSpells
|
||||
SPELL_DK_PET_SCALING_03 = 61697,
|
||||
SPELL_DK_AVOIDANCE = 65220,
|
||||
SPELL_DK_ARMY_OF_THE_DEAD_PASSIVE = 49040,
|
||||
SPELL_SUMMON_HEAL = 36492, // Serverside - Summon Heal
|
||||
SPELL_RISEN_GHOUL_SELF_STUN = 47466,
|
||||
};
|
||||
|
||||
#define PET_FOLLOW_DIST 1.0f
|
||||
|
||||
Reference in New Issue
Block a user