mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[8213] Update code for talent 17962.
* Fixed place, basic dependent from 2 auras type at target and damage calculation. * Avoid double apply spell bonus from original effect and talent self. Signed-off-by: VladimirMangos <vladimir@getmangos.com> This is first patch in series for resolve all problem suggested by different authors. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
b047a62259
commit
eba34304ea
6 changed files with 29 additions and 19 deletions
|
|
@ -408,6 +408,26 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
|
|||
if(unitTarget->HasAuraState(AURA_STATE_IMMOLATE))
|
||||
damage += int32(damage*0.25f);
|
||||
}
|
||||
// Conflagrate - consumes immolate or Shadowflame
|
||||
if (m_spellInfo->TargetAuraState == AURA_STATE_IMMOLATE)
|
||||
{
|
||||
// for caster applied auras only
|
||||
Unit::AuraList const &mPeriodic = unitTarget->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
|
||||
for(Unit::AuraList::const_iterator i = mPeriodic.begin(); i != mPeriodic.end(); ++i)
|
||||
{
|
||||
if ((*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_WARLOCK &&
|
||||
(*i)->GetCasterGUID()==m_caster->GetGUID() &&
|
||||
// Immolate
|
||||
((*i)->GetSpellProto()->SpellFamilyFlags & 0x0000000000000004 ||
|
||||
// Shadowflame
|
||||
(*i)->GetSpellProto()->SpellFamilyFlags2 & 0x00000002))
|
||||
{
|
||||
int32 damagetick = m_caster->SpellDamageBonus(unitTarget, (*i)->GetSpellProto(), (*i)->GetModifier()->m_amount, DOT);
|
||||
damage += damagetick * 4;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PRIEST:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue