aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-24 11:28:00 -0600
committermegamage <none@none>2009-01-24 11:28:00 -0600
commit30f6b38941e907c20dbb68f514eaf1345082abd3 (patch)
tree883bbfd30c30a2ea093f07fe7195a5d74a7bc2a0 /src/game/Spell.cpp
parentf0ebb960642ad0fa43fa49fd3cc76f6516de6cd3 (diff)
*Update to Mangos 7158.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 6869485266a..d0e1e3f9db3 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2238,6 +2238,9 @@ void Spell::handle_immediate()
int32 duration = GetSpellDuration(m_spellInfo);
if (duration)
{
+ // Apply duration mod
+ if(Player* modOwner = m_caster->GetSpellModOwner())
+ modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DURATION, duration);
m_spellState = SPELL_STATE_CASTING;
m_caster->AddInterruptMask(m_spellInfo->ChannelInterruptFlags);
SendChannelStart(duration);