MCPcopy Create free account
hub / github.com/Card-Forge/forge / addToken

Method addToken

forge-gui-desktop/src/test/java/forge/ai/AITest.java:183–189  ·  view source on GitHub ↗
(String name, Player p)

Source from the content-addressed store, hash-verified

181 }
182
183 protected Card addToken(String name, Player p) {
184 Card c = createToken(name, p);
185 // card need a new Timestamp otherwise Static Abilities might collide
186 c.setGameTimestamp(p.getGame().getNextTimestamp());
187 p.getZone(ZoneType.Battlefield).add(c);
188 return c;
189 }
190
191 protected void playUntilStackClear(Game game) {
192 do {

Callers 2

addTokensMethod · 0.95

Calls 6

createTokenMethod · 0.95
setGameTimestampMethod · 0.95
getNextTimestampMethod · 0.80
getGameMethod · 0.65
addMethod · 0.65
getZoneMethod · 0.45

Tested by

no test coverage detected