mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
fix(Core/Pet): Correct (most) warlock pet scaling (#16769)
* create * Update Pet.cpp * remove unwanted change * Update data/sql/updates/pending_db_world/rev_1689522771491547000.sql * Update rev_1689522771491547000.sql
This commit is contained in:
@@ -1222,11 +1222,11 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
}
|
||||
case NPC_INFERNAL:
|
||||
{
|
||||
float highAmt = petlevel / 11.0f;
|
||||
float lowAmt = petlevel / 12.0f;
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, lowAmt * lowAmt * lowAmt);
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, highAmt * highAmt * highAmt);
|
||||
|
||||
if (pInfo)
|
||||
{
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(pInfo->min_dmg));
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(pInfo->max_dmg));
|
||||
}
|
||||
AddAura(SPELL_PET_AVOIDANCE, this);
|
||||
AddAura(SPELL_WARLOCK_PET_SCALING_05, this);
|
||||
AddAura(SPELL_INFERNAL_SCALING_01, this);
|
||||
|
||||
Reference in New Issue
Block a user