From e45c57f298acfb496947be150dd379e3f39bc673 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 18 May 2009 10:22:43 -0500 Subject: [PATCH] *Fix the bug that startfall aoe damage also apply on direct target. *Add starfall spell bonus for other ranks. By Uruviel and Nesocip. --HG-- branch : trunk --- sql/updates/3391_world_spell_bonus_data.sql | 10 ++++++++++ src/game/SpellMgr.cpp | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 sql/updates/3391_world_spell_bonus_data.sql diff --git a/sql/updates/3391_world_spell_bonus_data.sql b/sql/updates/3391_world_spell_bonus_data.sql new file mode 100644 index 0000000000..aa876760ae --- /dev/null +++ b/sql/updates/3391_world_spell_bonus_data.sql @@ -0,0 +1,10 @@ +DELETE FROM `spell_bonus_data` WHERE `entry` IN (50288,50294,53191,53188,53194,53189,53195,53190); +INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`, `ap_bonus`, `comments`) VALUES +(50288, 0.05, 0, 0, 'Druid - Starfall rank 1'), +(50294, 0.012, 0, 0, 'Druid - Starfall AOE rank 1'), +(53191, 0.05, 0, 0, 'Druid - Starfall rank 2'), +(53188, 0.012, 0, 0, 'Druid - Starfall AOE rank 2'), +(53194, 0.05, 0, 0, 'Druid - Starfall rank 3'), +(53189, 0.012, 0, 0, 'Druid - Starfall AOE rank 3'), +(53195, 0.05, 0, 0, 'Druid - Starfall rank 4'), +(53190, 0.012, 0, 0, 'Druid - Starfall AOE rank 4'); diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 8a067ec734..5de2f843c8 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -3281,9 +3281,12 @@ void SpellMgr::LoadSpellCustomAttr() switch(spellInfo->SpellFamilyName) { case SPELLFAMILY_DRUID: - // starfall + // Starfall Target Selection if(spellInfo->SpellFamilyFlags[2] & 0x100) spellInfo->MaxAffectedTargets = 2; + // Starfall AOE Damage + else if(spellInfo->SpellFamilyFlags[2] & 0x800000) + mSpellCustomAttr[i] |= SPELL_ATTR_CU_EXCLUDE_SELF; // Wild growth else if(spellInfo->SpellFamilyFlags[1] & 0x4000000) spellInfo->MaxAffectedTargets = 5;