aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-06-29 20:32:56 +0200
committerQAston <none@none>2009-06-29 20:32:56 +0200
commit40679890962457c6c85adad6b93f5f6bda73a635 (patch)
tree81d0244ff7ff3f66850da9cc43972e4c8c370ed9 /src/game/Player.cpp
parentcf414bb7ca796c2d4a065b803826c02d833e3003 (diff)
*Implement aura rank selection for aoe auras casted by player
*More correct level requirement checks for unit target *Fix some visual issues with spells which are interrupted after SendSpellStart but before SendSpellGo *Prevent adding spellmods permamently to already finished spells. --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 62f712aabf1..53add222819 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17316,6 +17316,9 @@ void Player::SetSpellModTakingSpell(Spell * spell, bool apply)
if (!spell || (m_spellModTakingSpell && m_spellModTakingSpell != spell))
return;
+ if (apply && spell->m_spellState == SPELL_STATE_FINISHED)
+ return;
+
if (apply)
m_spellModTakingSpell = spell;
else