*New check for SPELL_FAILED_NO_DUELING by dungeons - by redcell

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2008-12-26 13:45:46 +01:00
parent 8e52469ad1
commit 023efbafdd

View File

@@ -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;