mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[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:
parent
5d1fe68906
commit
699d22fc28
@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user