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

Method addCardToZone

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

Source from the content-addressed store, hash-verified

142 }
143
144 protected Card addCardToZone(String name, Player p, ZoneType zone) {
145 Card c = createCard(name, p);
146 // card need a new Timestamp otherwise Static Abilities might collide
147 c.setGameTimestamp(p.getGame().getNextTimestamp());
148 p.getZone(zone).add(c);
149 return c;
150 }
151
152 protected Card addCard(String name, Player p) {
153 return addCardToZone(name, p, ZoneType.Battlefield);

Calls 6

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

Tested by

no test coverage detected