mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
fix(Core/Player): prevent crash exploit spam duel starting (#9226)
This commit is contained in:
committed by
GitHub
parent
25ca425357
commit
ab761c9865
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user