mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8061] Fixed 12834 and ranks stacking behaviour.
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
7448aaa37e
commit
e2d3a68a48
2 changed files with 14 additions and 5 deletions
|
|
@ -680,15 +680,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
|
||||||
|
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);
|
m_caster->CastCustomSpell(unitTarget, 12721, &deepWoundsDotBasePoints0, NULL, NULL, true, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8060"
|
#define REVISION_NR "8061"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue