mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
*New check for SPELL_FAILED_NO_DUELING by dungeons - by redcell
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user