Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effect to all, to X random, etc. #246

Closed
4 tasks done
Zomis opened this issue May 29, 2015 · 7 comments
Closed
4 tasks done

Effect to all, to X random, etc. #246

Zomis opened this issue May 29, 2015 · 7 comments

Comments

@Zomis
Copy link
Member

Zomis commented May 29, 2015

Add support for the following:

  • All players draw X cards
  • (Do something) to all entities that match a filter
  • (Do something) to X random entities that match a filter
  • (Do something) X times
@Zomis
Copy link
Member Author

Zomis commented May 29, 2015

Example for dealing damage to 2 random:

onEndOfTurn {
    damage 1 to 2 random {
        creature true
        ownedBy 'you'
        zone 'Battlefield'
    }
}

Zomis added a commit that referenced this issue May 29, 2015
@Zomis
Copy link
Member Author

Zomis commented May 29, 2015

Example for change and set:

onEndOfTurn {
    change ATTACK by 1 onCards 2 random {
        ownedBy 'you'
        zone 'Battlefield'
    }
    set HEALTH to 1 onCards 2 random {
        ownedBy 'you'
        zone 'Battlefield'
    }
}

@Zomis
Copy link
Member Author

Zomis commented May 29, 2015

Repeat example:

onEndOfTurn {
    repeat(3) {
        change ATTACK by 1 onCards 1 random {
            creature true
            ownedBy 'you'
            zone 'Battlefield'
        }
    }
}

Zomis added a commit that referenced this issue May 29, 2015
@Zomis Zomis closed this as completed May 29, 2015
@Phrancis
Copy link
Contributor

@Zomis what is the syntax for "all" modifier? Any example?

@Zomis
Copy link
Member Author

Zomis commented May 31, 2015

@Phrancis That's the "default".

For example:

change ATTACK by 1 onCards {
    ownedBy 'you'
    zone 'Battlefield'
}

@Phrancis
Copy link
Contributor

What about for your initial example "All players draw X cards"?

@Zomis
Copy link
Member Author

Zomis commented May 31, 2015

drawCard 'all', 4
drawCard 'you', 4
drawCard 'opponent', 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants