Core/Spells: Fixed overwriting summon requests

Closes #17049
This commit is contained in:
Incorrect
2016-05-01 12:31:55 +02:00
committed by Shauren
parent 775b03bf6f
commit 1aa30d3cce
8 changed files with 50 additions and 63 deletions

View File

@@ -5324,6 +5324,9 @@ SpellCastResult Spell::CheckCast(bool strict)
if (!target || m_caster->ToPlayer() == target || (!target->IsInSameRaidWith(m_caster->ToPlayer()) && m_spellInfo->Id != 48955)) // refer-a-friend spell
return SPELL_FAILED_BAD_TARGETS;
if (target->HasSummonPending())
return SPELL_FAILED_SUMMON_PENDING;
// check if our map is dungeon
MapEntry const* map = sMapStore.LookupEntry(m_caster->GetMapId());
if (map->IsDungeon())