Jump to content

[Patch]Warlock Dummy - Pandemic


Recommended Posts

What bug does the patch fix? What features does the patch add?

This patch implements the dummy effect of Pandemic, warlock talent

http://www.wowhead.com/?spell=58437

For which repository revision was the patch created?

7454

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

http://getmangos.eu/community/viewtopic.php?id=6119

Who has been writing this patch? Please include either forum user names or email addresses.

Me (Corfen)

patch:

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index e933d29..8e1135c 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5045,6 +5045,21 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                    triggered_spell_id = 37378;
                    break;
                }
+                //Pandemic proc
+                case 58435:
+                case 58436:
+                case 58437:
+                {
+                float chance  = 0.0f; // I don't know how to get spell crit rating better o_O
+                    chance += ((Player*)this)->GetSpellCritFromIntellect();
+                    chance += ((Player*)this)->GetTotalAuraModifier(SPELL_AURA_MOD_SPELL_CRIT_CHANCE);
+                    chance += ((Player*)this)->GetRatingBonusValue(CR_CRIT_SPELL);
+                if (!roll_chance_f(chance))
+                    return false;
+                    basepoints0 = int32(damage*triggerAmount/100);
+                    triggered_spell_id = 58691;
+                    break;
+                }
            }
            break;
        }

I don't know how to get spell crit chance in better way =/

Link to comment
Share on other sites

  • 39 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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