* Add: Shadowfiend damage and spellpower scaling, this will need feedback (are the numbers correct?)

Closes issue #129
  - Patch by Kaelima

--HG--
branch : trunk
This commit is contained in:
click
2010-04-11 17:10:27 +02:00
parent a2a2da1342
commit 7993aa21e5

View File

@@ -956,6 +956,19 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel * 4 + petlevel));
break;
}
case 19668: // Shadowfiend
{
if (!pInfo)
{
SetCreateMana(28 + 10*petlevel);
SetCreateHealth(28 + 30*petlevel);
}
int32 bonus_dmg = (int32(m_owner->SpellBaseDamageBonus(SPELL_SCHOOL_MASK_SHADOW)* 0.3f));
SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float((petlevel * 4 - petlevel) + bonus_dmg));
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float((petlevel * 4 + petlevel) + bonus_dmg));
break;
}
case 19833: //Snake Trap - Venomous Snake
{
SetCreateHealth(uint32(107 * (petlevel - 40) * 0.025f));