Core/Spells: Fix item enchant Blood Draining

Closes #513 & #1191
This commit is contained in:
tobmaps
2011-05-11 22:16:18 +07:00
parent 064c570f08
commit 7b0db7a4ea
3 changed files with 12 additions and 2 deletions
+1 -2
View File
@@ -19298,8 +19298,7 @@ INSERT INTO `spell_proc_event` (`entry`,`SchoolMask`,`SpellFamilyName`,`SpellFam
( 63737, 0x00, 6, 0x00000800, 0x00000004, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Serendipity
( 64127, 0x00, 6, 0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Body and Soul
( 64129, 0x00, 6, 0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0, 0, 0), -- Body and Soul
( 64568, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 3), -- Blood Reserve
( 64571, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 30), -- Blood Draining
( 64571, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 10), -- Blood Draining
( 64440, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000020, 0, 0, 20), -- Blade Warding
( 64714, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 45), -- Flame of the Heavens
( 64738, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0, 0, 45), -- Show of Faith
@@ -0,0 +1,2 @@
DELETE FROM `spell_proc_event` WHERE `entry` = 64568;
UPDATE `spell_proc_event` SET `cooldown` = 10 WHERE `entry` = 64571;
+9
View File
@@ -8087,6 +8087,15 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
if (GetStat(STAT_SPIRIT) > stat) { trigger_spell_id = 60235; }
break;
}
case 64568: // Blood Reserve
{
if (HealthBelowPctDamaged(35, damage))
{
CastCustomSpell(this, 64569, &triggerAmount, NULL, NULL, true);
RemoveAura(64568);
}
return false;
}
case 67702: // Death's Choice, Item - Coliseum 25 Normal Melee Trinket
{
float stat = 0.0f;