wesnoth/data/schema
newfrenchy83 ce4fb82173 Filter weapon in [filter student/opponent/etc] rework (pr #4678)
All weapon specials can now be used in [abilities] to effect all weapons of the unit that pass the filter given in [filter_student][filter_weapon].

Explanation: filter_student filters on the unit that is  under the effect of the ability (which is usually the unit itself, but not always if [affect_adjacent] is used).  [filter_student][filter_weapon] filters on the active weapon of that unit (the student) in a specific combat.

[filter_weapon] is now supported in all filter_opponent, filter_student, filter_attacker, filter_defender

Note that constructs like [filter_student][or][filter_weapon] are not suported, [filter_weapon] must be a direct subtag of the four just mentioned tags.
 
[filter_second_weapon] is no longer used for abilities that come from weapon specials.

implements #4629 , #4475 , #4389

Co-authored-by: gfgtdf <daniel.gfgtdf@gmail.com>
2020-01-05 00:27:55 +01:00
..
ai Schema validation: add missing AI aspect 2018-12-03 18:19:44 -08:00
core Restore the dir+count test for move_unit and add the syntax to the schema 2019-12-14 11:28:37 -05:00
editor Add a validator subclass specialized for validating WML schemas against the WML schema schema 2018-11-03 17:09:25 -04:00
filters WML: Add separate special_id and special_type checks to weapon filtering 2019-10-16 02:55:13 +00:00
terrain Trigger an L4 deprecation message for [terrain_type]vision_alias= 2019-09-10 06:42:21 +02:00
types Schema: Move list types into a separate config file 2018-11-04 18:37:51 -05:00
units Filter weapon in [filter student/opponent/etc] rework (pr #4678) 2020-01-05 00:27:55 +01:00
diff.cfg Add a schema for the diff format 2019-08-30 23:36:32 -04:00
game_config.cfg Restore the dir+count test for move_unit and add the syntax to the schema 2019-12-14 11:28:37 -05:00
gui.cfg gui2/text_box: Add hover effect 2019-11-11 17:16:39 +11:00
macros.cfg Schema: Add a macro for links (and make use of it) 2018-10-23 22:49:53 -04:00
pbl.cfg PblWML schema: add the "dependencies" attribute 2019-09-27 18:36:26 +02:00
schema.cfg Add a validator subclass specialized for validating WML schemas against the WML schema schema 2018-11-03 17:09:25 -04:00