fix(Spells/SpellInfoCorrections) Remove friendly mask on goblins (#18912)

Co-authored-by: Jelle Meeus <sogladev@gmail.com>
This commit is contained in:
Walter Pagani 2024-06-29 00:28:29 -03:00 committed by GitHub
parent 45a1b99e5c
commit 77be5bb19d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -572,6 +572,10 @@ public:
if (!SpawnAssoc)
return;
// check if they're hostile
if (!(me->IsHostileTo(who) || who->IsHostileTo(me)))
return;
if (me->IsValidAttackTarget(who))
{
Player* playerTarget = who->ToPlayer();