[Bug Fix] Fix 'Teleport Doors' from being blocked by GM flag (#4475)

* gm flag blocks teleport doors with keys from working instead of allowing them to work

* correct coniditional logic
This commit is contained in:
catapultam-habeo 2024-09-18 16:18:07 -05:00 committed by GitHub
parent 5d1fe68906
commit 699d22fc28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -542,8 +542,8 @@ void Doors::HandleClick(Client *sender, uint8 trigger)
if (EQ::ValueWithin(m_open_type, 57, 58) && HasDestinationZone()) {
bool has_key_required = (required_key_item && required_key_item == player_key);
if (sender->GetGM() && has_key_required) {
has_key_required = false;
if (sender->GetGM() && !has_key_required) {
has_key_required = true;
sender->Message(Chat::White, "Your GM flag allows you to open this door without a key.");
}