Fixed missing override, restored and additional comments

This commit is contained in:
Oleg Agafonov 2021-04-02 11:43:42 +04:00
parent f307bffcda
commit 05b1366c39
3 changed files with 22 additions and 2 deletions

View file

@ -106,6 +106,21 @@ public interface MageObject extends MageItem, Serializable {
void setStartingLoyalty(int startingLoyalty);
/**
* Dynamic cost modification for card (process only OWN abilities).
* <p>
* Usage example: if it need stack related info (like real targets) then must check two
* states (game.inCheckPlayableState):
* <p>
* 1. In playable state it must check all possible use cases (e.g. allow to
* reduce on any available target and modes)
* <p>
* 2. In real cast state it must check current use case (e.g. real selected
* targets and modes)
*
* @param ability
* @param game
*/
void adjustCosts(Ability ability, Game game);
void adjustTargets(Ability ability, Game game);