fix(transmog_scripts): fix CanBeSeen (#66)

This commit is contained in:
Axel Cocat
2022-01-27 00:54:21 +01:00
committed by GitHub
parent 85555c07e7
commit 42a3e86f44

View File

@@ -38,7 +38,7 @@ public:
bool CanBeSeen(Player const* player) override
{
Player* target = ObjectAccessor::FindConnectedPlayer(player->GetGUID());
return !sTransmogrification->IsEnabled() && !target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value;
return sTransmogrification->IsEnabled() && !target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value;
}
};