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

DeEnergize #38

Open
FredericDesgreniers opened this issue Jul 28, 2017 · 1 comment
Open

DeEnergize #38

FredericDesgreniers opened this issue Jul 28, 2017 · 1 comment

Comments

@FredericDesgreniers
Copy link
Collaborator

Should be implemented in DeEnergize.use().

AbilityPartDeenergize contains a target and an amount.

• owner of target removes [amount] energy from that [target] pokemon.

Target can be acquired using owner.getTarget(targetBoard, target);, which should give back a pokemon card.

Amount of energy can be acquired using amount.evaluateAsExpression(targetBoard, owner), which returns an integer

@laihaotao
Copy link
Owner

laihaotao commented Jul 28, 2017

  1. Is it any information about decreasing which type of energy (if a Pokemon has two types of energy, now I just simply loop to remove in a specific order)?
  2. What happened if the amount is larger than the attached energy amount? (Now I just remove all of them instead of giving any error message)?

The implementation code is inside the EnergyCost.java method deenergy().

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

No branches or pull requests

2 participants