aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShocker <none@none>2010-09-13 22:54:04 +0300
committerShocker <none@none>2010-09-13 22:54:04 +0300
commit6528a82b612432b9091163e8a9074d424c7e764d (patch)
treeedb3694f3e7f6f816b15eef5bb3b22e26611c036
parentde9ed810ef4a8dd24ab54f3bf74a5c5a04c2a7d7 (diff)
Core/Spells: Remove duplicate healing bonus calculation for Prayer of Mending, closes issue 3879, thanks dr.tenma
--HG-- branch : trunk
-rw-r--r--sql/base/world_database.sql2
-rw-r--r--sql/updates/9912_world_spell_bonus_data.sql3
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp1
3 files changed, 4 insertions, 2 deletions
diff --git a/sql/base/world_database.sql b/sql/base/world_database.sql
index e9d3903b473..052e400092a 100644
--- a/sql/base/world_database.sql
+++ b/sql/base/world_database.sql
@@ -16944,7 +16944,7 @@ INSERT INTO `spell_bonus_data` (`entry`,`direct_bonus`,`dot_bonus`,`ap_bonus`,`a
(53000, 0.229, -1, -1, -1, 'Priest - Penance Hurt (Rank 4)'),
(17, 0.8068, -1, -1, -1, 'Priest - Power Word: Shield'),
(596, 0.8068, -1, -1, -1, 'Priest - Prayer of Healing'),
-(33110, 0.8068, -1, -1, -1, 'Priest - Prayer of Mending Heal Proc'),
+(33110, 0.8068, 0, 0, 0, 'Priest - Prayer of Mending Heal Proc'),
(33619, 0, 0, 0, 0, 'Priest - Reflective Shield'),
(139, -1, 0.376, -1, -1, 'Priest - Renew'),
(32379, 0.4296, -1, -1, -1, 'Priest - Shadow Word: Death'),
diff --git a/sql/updates/9912_world_spell_bonus_data.sql b/sql/updates/9912_world_spell_bonus_data.sql
new file mode 100644
index 00000000000..fe25a10be8f
--- /dev/null
+++ b/sql/updates/9912_world_spell_bonus_data.sql
@@ -0,0 +1,3 @@
+DELETE FROM `spell_bonus_data` WHERE `entry` IN ('33110');
+INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`, `ap_bonus`, `ap_dot_bonus`, `comments`) VALUES
+('33110','0.8068','0','0','0','Priest - Prayer of Mending Heal Proc');
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 13fc46f73f4..bb06372c5a3 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -15062,7 +15062,6 @@ bool Unit::HandleAuraRaidProcFromChargeWithValue(AuraEffect *triggeredByAura)
CastCustomSpell(target, spellProto->Id, &heal, NULL, NULL, true, NULL, triggeredByAura, caster_guid);
if (Aura * aura = target->GetAura(spellProto->Id, caster->GetGUID()))
aura->SetCharges(jumps);
- heal = caster->SpellHealingBonus(this, spellProto, heal, HEAL);
}
}
}