Card-Forge / forge

An unofficial rules engine for the world's greatest card game.
https://card-forge.github.io/forge/
GNU General Public License v3.0
1.03k stars 571 forks source link

AI: add Logic for ClassLevelUp #6531

Open Hanmac opened 3 weeks ago

Hanmac commented 3 weeks ago

AI need logic / flags for when it should use the Mana for this

For Example: Caretaker's Talent

{W}: Level 2

When this Class becomes level 2, create a token that’s a copy of target token you control.

{3}{W}: Level 3

Creature tokens you control get +2/+2.

AI need to first check for Trigger, like When this Class becomes level and see if it would be beneficial (if it controls tokens)

Then it might need some Other AI Flags, like don't update to Level 3 if it doesn't control any creatures

Agetian commented 3 weeks ago

Hmm, an interesting, though not a very straightforward/easy thing to do :) I'll see if I can figure it out closer to the weekend unless someone is faster :)

Hanmac commented 3 weeks ago

yeah, i will see what kind of AI parameters i could add to this