mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
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:
@@ -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)
|
bool CanReceiveDamage(Unit* attacker)
|
||||||
{
|
{
|
||||||
return attacker && attacker->GetGUID() == me->GetSummonerGUID();
|
return attacker && attacker->GetGUID() == me->GetSummonerGUID();
|
||||||
|
|||||||
Reference in New Issue
Block a user