[8061] Fixed 12834 and ranks stacking behaviour. Author: hunuza

--HG--
branch : trunk
This commit is contained in:
QAston
2009-06-23 14:18:20 +02:00
parent f2ec641e42
commit c5413dc462
+13 -4
View File
@@ -841,15 +841,24 @@ void Spell::EffectDummy(uint32 i)
switch (m_spellInfo->Id) switch (m_spellInfo->Id)
{ {
case 12850: damage *= 0.2f; break; case 12162: damage *= 0.16f; break; // Rank 1
case 12162: damage *= 0.4f; break; case 12850: damage *= 0.32f; break; // Rank 2
case 12868: damage *= 0.6f; break; case 12868: damage *= 0.48f; break; // Rank 3
default: default:
sLog.outError("Spell::EffectDummy: Spell %u not handled in DW",m_spellInfo->Id); sLog.outError("Spell::EffectDummy: Spell %u not handled in DW",m_spellInfo->Id);
return; return;
}; };
int32 deepWoundsDotBasePoints0 = int32(damage / 4); // get remaining damage of old Deep Wound aura
AuraEffect* deepWound = unitTarget->GetAuraEffect(12721, 0);
if(deepWound)
{
int32 remainingTicks = deepWound->GetParentAura()->GetAuraDuration() / deepWound->GetAuraAmplitude();
damage += remainingTicks * deepWound->GetAmount();
}
// 1 tick/sec * 6 sec = 6 ticks
int32 deepWoundsDotBasePoints0 = int32(damage / 6);
m_caster->CastCustomSpell(unitTarget, 12721, &deepWoundsDotBasePoints0, NULL, NULL, true, NULL); m_caster->CastCustomSpell(unitTarget, 12721, &deepWoundsDotBasePoints0, NULL, NULL, true, NULL);
return; return;
} }