fix(Scripts/SerpentshrineCavern): Leotheras inner demons should only … (#17976)

fix(Scripts/SerpentshrineCavern): Leotheras inner demons should only be seen by their summoner
This commit is contained in:
Andrew
2023-12-10 19:59:02 -03:00
committed by GitHub
parent efe280815d
commit 310dd3137c

View File

@@ -272,6 +272,11 @@ struct npc_inner_demon : public ScriptedAI
}
}
bool CanBeSeen(Player const* player) override
{
return player && player->GetGUID() == me->GetSummonerGUID();
}
bool CanReceiveDamage(Unit* attacker)
{
return attacker && attacker->GetGUID() == me->GetSummonerGUID();