Skip to content

Commit

Permalink
Fix typo2
Browse files Browse the repository at this point in the history
(based on cmangos/mangos-wotlk@e677ed0d7)

Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
boxa authored and xfurry committed Dec 10, 2017
1 parent d2a7c84 commit 23a9dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spell.cpp
Expand Up @@ -5757,7 +5757,7 @@ SpellCastResult Spell::CheckCast(bool strict)
(i_spellST->type == SPELL_TARGET_TYPE_DEAD && ((Creature*)pTarget)->IsCorpse()))
{
// always use spellMaxRange, in case GetLastRange returned different in a previous pass
WorldObject* searcher = (worldObject && (worldObject->GetTypeId() == TYPEID_GAMEOBJECT || worldObject->GetTypeId() == TYPEID_DYNAMICOBJECT) ? worldObject : m_caster;
WorldObject* searcher = (worldObject && (worldObject->GetTypeId() == TYPEID_GAMEOBJECT || worldObject->GetTypeId() == TYPEID_DYNAMICOBJECT)) ? worldObject : m_caster;
if (pTarget->IsWithinDistInMap(searcher, GetSpellMaxRange(srange)))
targetExplicit = (Creature*)pTarget;
else
Expand Down

0 comments on commit 23a9dd6

Please sign in to comment.