Merge branch 'master' of github.com:TrinityCore/TrinityCore into mmaps_rw

This commit is contained in:
Sebastian Valle committed 2013-10-05 18:12:02 -05:00
commit d47e43dc10
3 files changed
+23 -1

No files matched your search

+1 -1
View File
@@ -5325,7 +5325,7 @@ SpellCastResult Spell::CheckCast(bool strict)
if (!m_caster->GetTarget())
return SPELL_FAILED_BAD_TARGETS;
Player* target = m_caster->ToPlayer()->GetSelectedPlayer();
Player* target = ObjectAccessor::FindPlayer(m_caster->ToPlayer()->GetTarget());
if (!target || m_caster->ToPlayer() == target || (!target->IsInSameRaidWith(m_caster->ToPlayer()) && m_spellInfo->Id != 48955)) // refer-a-friend spell
return SPELL_FAILED_BAD_TARGETS;