diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 3c874ee56..da6f652b2 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2417,18 +2417,19 @@ void Spell::cast(bool skipCheck) ((Player*)m_caster)->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL, m_spellInfo->Id); } + FillTargetMap(); + + if(m_spellState == SPELL_STATE_FINISHED) // stop cast if spell marked as finish somewhere in FillTargetMap + { + SetExecutedCurrently(false); + return; + } + // CAST SPELL SendSpellCooldown(); TakePower(); TakeReagents(); // we must remove reagents before HandleEffects to allow place crafted item in same slot - FillTargetMap(); - - if(m_spellState == SPELL_STATE_FINISHED) // stop cast if spell marked as finish somewhere in Take*/FillTargetMap - { - SetExecutedCurrently(false); - return; - } SendCastResult(castResult); SendSpellGo(); // we must send smsg_spell_go packet before m_castItem delete in TakeCastItem()... diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4404a8fb1..c50138bb8 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7852" + #define REVISION_NR "7853" #endif // __REVISION_NR_H__