fix(Core/Player): prevent crash exploit spam duel starting (#9226)

This commit is contained in:
IntelligentQuantum
2021-11-28 23:12:53 +03:30
committed by GitHub
parent 25ca425357
commit ab761c9865
8 changed files with 144 additions and 112 deletions

View File

@@ -5631,7 +5631,7 @@ SpellCastResult Spell::CheckCast(bool strict)
{
// Xinef: fix for duels
Player* player = m_caster->ToPlayer();
if (!player || !player->duel || target != player->duel->opponent)
if (!player || !player->duel || target != player->duel->Opponent)
return SPELL_FAILED_NOTHING_TO_DISPEL;
}
}