[Bug Fix] When Mounts are allowed to zone, block them from zoning to disallowed zones. (#4330)

This commit is contained in:
Fryguy 2024-05-25 18:03:23 -04:00 committed by GitHub
parent c56742a2a8
commit 34ae3094d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -679,7 +679,7 @@ void Client::CompleteConnect()
break; break;
} }
case SE_SummonHorse: { case SE_SummonHorse: {
if (RuleB(Character, PreventMountsFromZoning)) { if (RuleB(Character, PreventMountsFromZoning) || !zone->CanCastOutdoor()) {
BuffFadeByEffect(SE_SummonHorse); BuffFadeByEffect(SE_SummonHorse);
} else { } else {
SummonHorse(buffs[j1].spellid); SummonHorse(buffs[j1].spellid);