All pastes #1468006 Raw Edit

Vermischtes

public diff v1 · immutable
#1468006 ·published 2009-06-20 21:30 UTC
rendered paste body
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cppindex 6f49c82..651b04e 100644--- a/src/game/SpellEffects.cpp+++ b/src/game/SpellEffects.cpp@@ -680,15 +680,24 @@ void Spell::EffectDummy(uint32 i)                      switch (m_spellInfo->Id)                     {-                        case 12850: damage *= 0.2f; break;-                        case 12162: damage *= 0.4f; break;-                        case 12868: damage *= 0.6f; break;+                        case 12850: damage *= 0.16f; break; // Rank 1+                        case 12162: damage *= 0.32f; break; // Rank 2+                        case 12868: damage *= 0.48f; break; // Rank 3                         default:                             sLog.outError("Spell::EffectDummy: Spell %u not handled in DW",m_spellInfo->Id);                             return;                     }; -                    int32 deepWoundsDotBasePoints0 = int32(damage / 4);+                    // get remaining damage of old Deep Wound aura+                    Aura* deepWound = unitTarget->GetAura(12721, 0);+                    if(deepWound)+                    {+                        int32 remainingTicks = deepWound->GetAuraDuration() / deepWound->GetModifier()->periodictime;+                        damage += remainingTicks * deepWound->GetModifier()->m_amount;+                    }++                    // 1 tick/sec * 6 sec = 6 ticks+                    int32 deepWoundsDotBasePoints0 = int32(damage / 6);                     m_caster->CastCustomSpell(unitTarget, 12721, &deepWoundsDotBasePoints0, NULL, NULL, true, NULL);                     return;                 }