[Cleanup] Remove arbitrary teleport blocking in Tutorial and Load zones (#3506)

This commit is contained in:
Vayle
2023-07-18 20:56:21 -04:00
committed by GitHub
parent 4c2f9a4423
commit b06505b80a
-13
View File
@@ -714,19 +714,6 @@ bool Mob::DoCastingChecksZoneRestrictions(bool check_on_casting, int32 spell_id)
return false;
}
}
/*
Zones where you can not gate.
*/
if (IsClient() &&
(zone->GetZoneID() == Zones::TUTORIAL || zone->GetZoneID() == Zones::LOAD) &&
CastToClient()->Admin() < AccountStatus::QuestTroupe) {
if (IsEffectInSpell(spell_id, SE_Gate) ||
IsEffectInSpell(spell_id, SE_Translocate) ||
IsEffectInSpell(spell_id, SE_Teleport)) {
Message(Chat::White, "The Gods brought you here, only they can send you away.");
return false;
}
}
}
return true;