Jump to content

[fixed] Blood Draining Enchant


Recommended Posts

Posted

Mangos Version: 10824

Custom Patches: rsa's branch

SD2 Version: 1895

Database Name and Version : YTDB 574

How it SHOULD work: "Permanently enchants your weapon to sometimes grant Blood Reserve when striking an enemy or inflicting damage with bleed attacks. When you fall below 35% health, Blood Reserve restores 360 to 440 health. Lasts 20 sec and stacks up to 5 times."

How it DOES work: It gives you two much heal and you almost cannot die...

  • 4 months later...
Posted

Still with same problem in lasted rev.

I'm searching on the web and found this

diff --git a/src/bindings/game/Unit.cpp b/src/bindings/game/Unit.cpp
--- a/src/bindings/game/Unit.cpp
+++ b/src/bindings/game/Unit.cpp
@@ -574,6 +574,15 @@
    if (IsAIEnabled)
        GetAI()->DamageDealt(pVictim, damage, damagetype);

+    if (Aura * bloodAura = pVictim->GetAura(64568))
+    {
+        if (pVictim->GetHealthPct() < 35)
+        {
+            int32 bp0 = bloodAura->GetEffect(0)->CalculateAmount(pVictim);
+            pVictim->CastCustomSpell(pVictim,64569,&bp0,NULL,NULL,true);
+        }
+    }
+
    if (damagetype != NODAMAGE)
    {
        // interrupting auras with AURA_INTERRUPT_FLAG_DAMAGE before checking !damage (absorbed damage breaks that type of auras)

+++ b/sql/updates/0062_world_fix.sql
@@ -0,0 +1,1 @@
+update `spell_proc_event` set `Cooldown` = 3, `CustomChance` = 30 where `entry` = 64571;

Not applied and not tested by me. maybe it helps.

  • 4 weeks later...
Posted
It gives you two much heal and you almost cannot die...
In clean mangos it not implemented so bug report just wrong by this reason.
I'm searching on the web and found this
Sorry, but patch is really horrible hack look like.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use