From 3c0491a1ddd499750a3fd8d733652c3311858d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=B8lin?= Date: Sun, 2 Apr 2017 15:12:51 +0200 Subject: [PATCH] Fix Ritual of Summoning in dungeons (#18) For Warlocks it is no longer possible to summon an other player into a dungeon. --- src/game/WorldHandlers/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/WorldHandlers/Spell.cpp b/src/game/WorldHandlers/Spell.cpp index fe5faa52..eca8d8e6 100644 --- a/src/game/WorldHandlers/Spell.cpp +++ b/src/game/WorldHandlers/Spell.cpp @@ -5073,7 +5073,7 @@ SpellCastResult Spell::CheckCast(bool strict) if (sMapStore.LookupEntry(m_caster->GetMapId())->IsDungeon()) { InstanceTemplate const* instance = ObjectMgr::GetInstanceTemplate(m_caster->GetMapId()); - if (!instance) + if (m_caster->GetMap() != target->GetMap()) { return SPELL_FAILED_TARGET_NOT_IN_INSTANCE; } if (instance->levelMin > target->getLevel()) { return SPELL_FAILED_LOWLEVEL; }