Jump to content

[fix] Chimera Shot - Serpent Sting effect


Recommended Posts

Posted

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

This patch gets rid of "magic number" (number of ticks) used in damage calculation of Chimera Shot - Serpent Sting effect part.

This patch will also correct the damage calculation of Chimera Shot - Serpent Sting effect when player has glyph of serpent sting equipped.

For which repository revision was the patch created?

[9728]

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

Couldnt find any

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

Me

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f7ab77a..72a5a5f 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5888,7 +5888,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
                        if ((familyFlag & UI64LIT(0x0000000000004000)) && aura->GetEffIndex() == EFFECT_INDEX_0)
                        {
                            // m_amount already include RAP bonus
-                            basePoint = aura->GetModifier()->m_amount * 5 * 40 / 100;
+                            basePoint = aura->GetModifier()->m_amount * (aura->GetAuraMaxDuration() / aura->GetModifier()->periodictime) * 40 / 100;
                            spellId = 53353;                // Chimera Shot - Serpent
                        }



  • 4 weeks later...
  • 4 months later...
×
×
  • 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