Core/Social: Implemented account ignores

This commit is contained in:
Shauren
2021-11-02 18:35:26 +01:00
parent d52c00a8fe
commit f40c0dfd55
10 changed files with 88 additions and 53 deletions

View File

@@ -3514,7 +3514,7 @@ void Spell::EffectDuel()
Player* target = unitTarget->ToPlayer();
// caster or target already have requested duel
if (caster->duel || target->duel || !target->GetSocial() || target->GetSocial()->HasIgnore(caster->GetGUID()))
if (caster->duel || target->duel || !target->GetSocial() || target->GetSocial()->HasIgnore(caster->GetGUID(), caster->GetSession()->GetAccountGUID()))
return;
// Players can only fight a duel in zones with this flag