Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How can you give Vision AI a bonus when aiming spells?
Ljac
#1 Posted : Saturday, January 6, 2018 3:18:59 PM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 52

Thanks: 7 times
Was thanked: 74 time(s) in 15 post(s)
So, I know that Vision AI has the option to give bonuses to Battlecries of minions when targetting something, but what about spells? Can I use the same category (BeforeBattlecryTargetBonus) on spells that have targets?
Incredibility
#2 Posted : Saturday, January 6, 2018 4:57:21 PM(UTC)
Rank: Member

Groups: Registered
Posts: 20

Thanks: 4 times
Was thanked: 10 time(s) in 9 post(s)
Perhaps it's possible by using BeforePlayCardBonus and then my_target.

So maybe for something like casting Polymorph on a minion with attack greater than 6 and health greater than 6:

Code:

{
	"GameCardId":"CS2_022",    
	"ConfigComment":"Polymorph: Transform a minion into a 1/1 Sheep.",   

	"BeforePlayCardBonus":
	{
		"values":
		[
			{
				"comment":"Increase value if target has attack greater than 6 and health greater than 6",
				"condition":"my_target(count(), attack > 6) > 0 AND my_target(count(), health > 6) > 0",
				"value":"10",
			},
		],
	},
}


The above code caused no errors during loading config but I have no idea if it actually does what I hope it does.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.042 seconds.