Giter VIP home page Giter VIP logo

Comments (6)

ProditorMagnus avatar ProditorMagnus commented on June 18, 2024

Code reference, might need removing name and description.

[abilities]
	[leadership]
		id=AE_agl_y_charm
		value=-20
		cumulative=yes
		name= _ "charm"
		description=_"This unit can charm enemy units that are next to it of all levels, distracting them, and making them fight 20% worse. Against units of level 0 and 1 the effect is cumulative."
		affect_self=no
		affect_allies=no
		affect_enemies=yes
		[affect_adjacent]
			adjacent=n,ne,se,s,sw,nw
			[filter]
				level=0
				[or]
					level=1
				[/or]
			[/filter]
		[/affect_adjacent]
	[/leadership]
	[leadership]
		id=AE_agl_y_charm_noncumulative
		value=-20
		cumulative=no
		name= _ "charm"
		description=_"This unit can charm enemy units that are next to it of all levels, distracting them, and making them fight 20% worse. Against units of level 0 and 1 the effect is cumulative."
		affect_self=no
		affect_allies=no
		affect_enemies=yes
		[affect_adjacent]
			adjacent=n,ne,se,s,sw,nw
			[filter]
				[not]
					level=0
				[/not]
				[not]
					level=1
				[/not]
			[/filter]
		[/affect_adjacent]
	[/leadership]
[/abilities]

from ageless-for-1-11.

sevu avatar sevu commented on June 18, 2024

Commited. I wonder why it was an issue though.

from ageless-for-1-11.

ProditorMagnus avatar ProditorMagnus commented on June 18, 2024

Testing showed that it was only issue for AI turns.

from ageless-for-1-11.

sevu avatar sevu commented on June 18, 2024

Maybe formula="$($this_unit.level < 2)" would have worked. It's recommended to surround WFL with brackets using $( ), maybe it affected with case.

from ageless-for-1-11.

ProditorMagnus avatar ProditorMagnus commented on June 18, 2024

1.13.2 says * Fix $this_unit auto-stored variable not working correctly in most SUFs

from ageless-for-1-11.

sevu avatar sevu commented on June 18, 2024

1.13.10 release notes also mention that it's now possible to use WFL in abilities and specials.

from ageless-for-1-11.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.