diff options
author | QAston <none@none> | 2009-04-11 19:45:14 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-04-11 19:45:14 +0200 |
commit | ca8a67ab9117756218a50a75f0b96d762d825eb6 (patch) | |
tree | 7d93c1a2d43f64a1e42f3aced2634f4a1e0207d5 | |
parent | e9a98392a100bc5ef5286af59181a0904a4be791 (diff) |
*Fix Faerie Fire (Feral) damage
--HG--
branch : trunk
-rw-r--r-- | sql/updates/2591_world.sql | 6 | ||||
-rw-r--r-- | src/game/SpellEffects.cpp | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sql/updates/2591_world.sql b/sql/updates/2591_world.sql new file mode 100644 index 00000000000..63da911d5a4 --- /dev/null +++ b/sql/updates/2591_world.sql @@ -0,0 +1,6 @@ +INSERT IGNORE INTO `spell_linked_spell` VALUES (16857, 60089, 0, 'Faerie Fire (Feral) Rank 1'); +INSERT IGNORE INTO `spell_linked_spell` VALUES (17390, 60089, 0, 'Faerie Fire (Feral) Rank 2'); +INSERT IGNORE INTO `spell_linked_spell` VALUES (17391, 60089, 0, 'Faerie Fire (Feral) Rank 3'); +INSERT IGNORE INTO `spell_linked_spell` VALUES (17392, 60089, 0, 'Faerie Fire (Feral) Rank 4'); +INSERT IGNORE INTO `spell_linked_spell` VALUES (27011, 60089, 0, 'Faerie Fire (Feral) Rank 5'); +INSERT IGNORE INTO `spell_linked_spell` VALUES (48475, 60089, 0, 'Faerie Fire (Feral) Rank 6'); diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 928fd74c6ba..d9ca84c18ae 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -500,6 +500,11 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) { damage += int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK)*0.08f); } + // Faerie Fire (Feral) + else if(m_spellInfo->Id == 60089) + { + damage += int32((m_caster->GetTotalAttackPowerValue(BASE_ATTACK) * 5 / 100) + 1); + } //Mangle Bonus for the initial damage of Lacerate and Rake if((m_spellInfo->SpellFamilyFlags.IsEqual(0x1000,0,0) && m_spellInfo->SpellIconID==494) || (m_spellInfo->SpellFamilyFlags.IsEqual(0,0x100,0) && m_spellInfo->SpellIconID==2246)) |