forked from wesnoth/wesnoth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the tag_name of each special to avoid infinite loops.
With this method, less cumbersome than the previous proposal that I removed, the check works perfectly for special weapons and for the event filter while the proposal to block at the level of the second loop creates a gap between the two cases, we could had a special train active but the filter_attack did not match or vice versa. I arranged so that the tag_name is only used for example for [filter_self] when applied to self, so the type of a modified opponent can be detected by a [filter_opponent] of a [damage] applied to self.
- Loading branch information
1 parent
dd40338
commit d658ffa
Showing
3 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters