From 023efbafdd93b36d4886bf7c2f2fcc167f359d21 Mon Sep 17 00:00:00 2001 From: Blaymoira Date: Fri, 26 Dec 2008 13:45:46 +0100 Subject: *New check for SPELL_FAILED_NO_DUELING by dungeons - by redcell --HG-- branch : trunk --- src/game/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index f4bf1af0180..e8fdbf5adce 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5085,7 +5085,7 @@ void Spell::EffectDuel(uint32 i) // Players can only fight a duel with each other outside (=not inside dungeons and not in capital cities) // Don't have to check the target's map since you cannot challenge someone across maps - if( caster->GetMapId() != 0 && caster->GetMapId() != 1 && caster->GetMapId() != 530) + if(caster->GetMap()->Instanceable()) { SendCastResult(SPELL_FAILED_NO_DUELING); // Dueling isn't allowed here return; -- cgit v1.2.3