Core/Pets: updated many pet damage formulars and apply spellpower bonus for warlock pets
This commit is contained in:
1 parent
0e998a6161
commit
80f65d665b
3 files changed
+62
-25
No files matched your search
@@ -1056,6 +1056,21 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(petlevel - 30 - (petlevel / 4)));
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel - 30 + (petlevel / 4)));
|
||||
}
|
||||
case 50675: // Ebon Imp
|
||||
case 89: // Summon Infernal
|
||||
case 11859: // Summon Doomguard
|
||||
{
|
||||
if (!pInfo)
|
||||
{
|
||||
SetCreateMana(28 + 10 * petlevel);
|
||||
SetCreateHealth(28 + 30 * petlevel);
|
||||
}
|
||||
|
||||
int32 bonus_dmg = (int32(m_owner->SpellBaseDamageBonusDone(SPELL_SCHOOL_MASK_MAGIC)* 0.071429f));
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float((petlevel * 4 - petlevel) + bonus_dmg));
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float((petlevel * 4 + petlevel) + bonus_dmg));
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user