Core/Spells: Implement Periodic mechanics
Change behaviour of single target periodic aura ticks to be more blizzlike Also add some missing handling of SPELL_AURA_MOD_CREATURE_AOE_DAMAGE_AVOIDANCE Fixes Deep wounds and Chimera Shot Serpent Remove an ancient hack with Drain Soul, spell id 100001 can now be deleted from spell_dbc table Allows Rolling dot mechanics and allows DK's to roll diseases with pestilence, see link for info: http://forums.elitistjerks.com/topic/82503-frost-dps-in-333this-will-be-a-day-long-remembered/page-88
This commit is contained in:
1 parent
84d0094ffa
commit
d4bbc26261
12 files changed
+457
-275
No files matched your search
@@ -4056,15 +4056,40 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
{
|
||||
// Get diseases on target of spell
|
||||
if (m_targets.GetUnitTarget() && // Glyph of Disease - cast on unit target too to refresh aura
|
||||
(m_targets.GetUnitTarget() != unitTarget || m_caster->GetAura(63334)))
|
||||
(m_targets.GetUnitTarget() != unitTarget || m_caster->HasAura(63334)))
|
||||
{
|
||||
// And spread them on target
|
||||
// Blood Plague
|
||||
if (m_targets.GetUnitTarget()->GetAura(55078))
|
||||
if (m_targets.GetUnitTarget()->HasAura(55078))
|
||||
{
|
||||
AuraEffect* aurEffOld = m_targets.GetUnitTarget()->GetAura(55078)->GetEffect(0);
|
||||
float donePct = aurEffOld->GetDonePct();
|
||||
float critChance = aurEffOld->GetCritChance();
|
||||
|
||||
m_caster->CastSpell(unitTarget, 55078, true);
|
||||
|
||||
if (unitTarget->HasAura(55078))
|
||||
if (AuraEffect* aurEffNew = unitTarget->GetAura(55078)->GetEffect(0))
|
||||
{
|
||||
aurEffNew->SetCritChance(critChance); // Blood Plague can crit if caster has T9.
|
||||
aurEffNew->SetDonePct(donePct);
|
||||
aurEffNew->SetDamage(m_caster->SpellDamageBonusDone(unitTarget, aurEffNew->GetSpellInfo(), std::max(aurEffNew->GetAmount(), 0), DOT) * donePct);
|
||||
}
|
||||
}
|
||||
// Frost Fever
|
||||
if (m_targets.GetUnitTarget()->GetAura(55095))
|
||||
if (m_targets.GetUnitTarget()->HasAura(55095))
|
||||
{
|
||||
float donePct = m_targets.GetUnitTarget()->GetAura(55095)->GetEffect(0)->GetDonePct();
|
||||
|
||||
m_caster->CastSpell(unitTarget, 55095, true);
|
||||
|
||||
if (unitTarget->HasAura(55095))
|
||||
if (AuraEffect* aurEffNew = unitTarget->GetAura(55095)->GetEffect(0))
|
||||
{
|
||||
aurEffNew->SetDonePct(donePct);
|
||||
aurEffNew->SetDamage(m_caster->SpellDamageBonusDone(unitTarget, aurEffNew->GetSpellInfo(), std::max(aurEffNew->GetAmount(), 0), DOT) * donePct);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user