aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-22 17:21:01 +0100
committerQAston <none@none>2009-03-22 17:21:01 +0100
commit5242ff364d812c4f10af9564a3249af9cd4e539c (patch)
tree678596cca859a53daed337aa8385e0fece319059 /src/game/Spell.cpp
parentdf553a98dd221b212189769627ce28f27a662aca (diff)
*Temporary hack to make Penance heal/damage at aura apply.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index dc5dbe6b4ea..2808b6fdbaf 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1194,6 +1194,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
// SPELL_AURA_ADD_TARGET_TRIGGER auras shouldn't trigger auras without duration
// set duration equal to triggering spell
if (GetSpellDuration(i->first)==-1)
+ {
// get duration from aura-only once
if (!_duration)
{
@@ -1201,6 +1202,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
_duration = aur ? aur->GetAuraDuration() : -1;
}
unit->SetAurasDurationByCasterSpell(i->first->Id, m_caster->GetGUID(), _duration);
+ }
}
}
}