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.
|