[8061] Fixed 12834 and ranks stacking behaviour.

Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
hunuza 2009-06-20 23:24:48 +02:00
parent 7448aaa37e
commit e2d3a68a48
2 changed files with 14 additions and 5 deletions

View file

@ -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 12162: damage *= 0.16f; break; // Rank 1
case 12850: 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;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8060"
#define REVISION_NR "8061"
#endif // __REVISION_NR_H__