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
adding resistance_anim to shema validation #4617
Conversation
If a day, a resistance abilities applied to adjacent unit is added in the core, with a proper animation, it can be validated.
Um, excuse me? What are you doing renaming an existing animation without any sort of backwards compatibility? If it was just the first commit I would've merged it immediately, but the second two commits are all sorts of questionable. |
@CelticMinstrel after the first commit the travis checking failing because apply_to=(blade,pierce,tec) key became invalid. If necessary what animation name different what name of ability who call this animation for what shema validation valid. |
That doesn't even make sense... |
@CelticMinstrel look at this https://travis-ci.com/wesnoth/wesnoth/jobs/262322472#L5140 |
Ah, I see the issue. The existing support for the resistance animation is |
the engine
Like leading_anim for [leadership] [resistance] tags for animation already exist in engine for resistance ability, but has never used in core, or elsewhere in my knowledge. |
@CelticMinstrel i have find the problem. I believe what "resistance" in udisplay was the namz complete of animation rhen what this is "resistance_anim", i corrected rhat now. |
i'm neigher an expert on the animation wml codes, not on the shema, so i have no opinion on this. |
The problem is what it exist an reason for what nobody using [resistance_anim], if resistance ability can be used on offense or defense only, the animation will be always played in both case, if it is possible now to filter the type of damage applied with filter_weapon for filter the call of animation, it is not the case for active_on=defense/offenses or filter_base_value. |
As a schema update, this looks fine. Does the |
Yes, when I use the resistance ability instead of leadership in an Elvish Captain, and replace leading_anim tags with resistance_anim tags, the animation is played when the assisted unit plays its [defense_anim] instead of its [attack_anim] |
In that case, yes, this should be (squash-)merged. |
If a day, a resistance abilities applied to adjacent unit is added in the core, with a proper animation, it can be validated.