inferno8 / wesnoth-Era_of_Magic

add-on for Battle for Wesnoth
GNU General Public License v2.0
10 stars 4 forks source link

Dimensional portal fixes #38

Closed Toranks closed 1 year ago

Toranks commented 1 year ago

This resolves #36 and resolves #37

Needs https://github.com/inferno8/wesnoth-To_Lands_Unknown/pull/19

Toranks commented 1 year ago

This part tries to prevent the unit from advancing to a unit that cannot move on the terrain it is located on. An object is not required to edit them, since the change is of immediate use, I simply delete the object that removes them all. (then all advancements are restored), and the [modify_unit] advances_to= takes care of temporarily overwriting the advances without the new unit types that can't fly.

https://github.com/inferno8/wesnoth-Era_of_Magic/pull/38/commits/bd7776f2ad710d80b9d7236aad5bd56d22fbc8a2