Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix banner not being placed inside of NationZones upon Siege start. #398

Merged
merged 1 commit into from
Oct 30, 2021

Conversation

LlmDl
Copy link
Member

@LlmDl LlmDl commented Oct 29, 2021

Description:

When nationzones are enabled, sieges can be started but the banner used to start one is removed by Towny.

This PR changes the logic of the evaluatePlaceStandingBanner method, turning it into a boolean, which returns true when a banner is successfully placed to start a siege. All other scenarios either return false or end up throwing an exception which doesn't result in the TownyBuildEvent being un-cancelled.


New Nodes/Commands/ConfigOptions:


Relevant Issue ticket:

Closes #397


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the SiegeWar License for perpetuity.

@LlmDl LlmDl added this to the 0.6.4 milestone Oct 29, 2021
@LlmDl LlmDl self-assigned this Oct 29, 2021
@LlmDl LlmDl added the bug Something isn't working label Oct 29, 2021
@LlmDl LlmDl changed the title Potential fix. Fix banner not being placed inside of NationZones upon Siege start. Oct 29, 2021
@LlmDl LlmDl requested a review from Warriorrrr October 29, 2021 20:40
@Warriorrrr Warriorrrr merged commit dd4a194 into master Oct 30, 2021
@Warriorrrr Warriorrrr deleted the hotfix/nationzone_prevents_banner branch October 30, 2021 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nation Zones preventing sieges
3 participants