Core/Spells: Fixed summoning to instances
This commit is contained in:
@@ -5189,8 +5189,9 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
Difficulty difficulty = m_caster->GetMap()->GetDifficulty();
|
Difficulty difficulty = m_caster->GetMap()->GetDifficulty();
|
||||||
if (map->IsRaid())
|
if (map->IsRaid())
|
||||||
if (InstancePlayerBind* targetBind = target->GetBoundInstance(mapId, difficulty))
|
if (InstancePlayerBind* targetBind = target->GetBoundInstance(mapId, difficulty))
|
||||||
if (targetBind->perm && targetBind != m_caster->ToPlayer()->GetBoundInstance(mapId, difficulty))
|
if (InstancePlayerBind* casterBind = m_caster->ToPlayer()->GetBoundInstance(mapId, difficulty))
|
||||||
return SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE;
|
if (targetBind->perm && targetBind->save != casterBind->save)
|
||||||
|
return SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE;
|
||||||
|
|
||||||
InstanceTemplate const* instance = sObjectMgr->GetInstanceTemplate(mapId);
|
InstanceTemplate const* instance = sObjectMgr->GetInstanceTemplate(mapId);
|
||||||
if (!instance)
|
if (!instance)
|
||||||
|
|||||||
Reference in New Issue
Block a user