Jump to content

[FIX]Infest


Guest ilija

Recommended Posts

Hey , there is a bug with infest.

How it should work?

When you get debuff infest and you have 90% health or more the buff will be removed

How it works?

It dont remove the debuff

fix:

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index fe94ee5..e9e54cb 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6448,6 +6448,19 @@ void Aura::PeriodicTick()
                        }
                        break;
                    }
+
+                    case 70541:
+                    case 73779:    
+                    case 73780:    
+                    case 73781:
+                    {
+                        if(target->GetHealth() >= target->GetMaxHealth() * 0.9 )
+                        {
+                            target->RemoveAurasDueToSpell(GetId());
+                            return;    
+                        }
+                        break;
+                    }
                    default:
                        break;
                }

Aurthesr - Wowka321 and kero99, thx to them!

Link to comment
Share on other sites

×
×
  • 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