mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 23:01:17 +00:00

Before the recent change, the ability type (tag name) was checked. It then got changed to ability id. This commit changes it back to the old behavior. For the record, there are situation when either the id or the type is needed. In addition, one sometimes wants to check wheter the ability is active (or will be active). Thus, no matter how this is done, neither will serve all purposes and sometimes other functions/functionality should be used. This commit does, however, restore the previous behavior and thus preserves backward compatibilty.