Skip to content

Commit

Permalink
[Cleanup] Remove arbitrary teleport blocking in Tutorial and Load zon…
Browse files Browse the repository at this point in the history
…es (#3506)
  • Loading branch information
Valorith authored Jul 19, 2023
1 parent 4c2f9a4 commit b06505b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions zone/spells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b06505b

Please sign in to comment.