@@ -259,10 +259,10 @@ public boolean canSummonThisMonster() {
259
259
}
260
260
261
261
public int summonMonster () {
262
- Chain chain = new Chain (this , selectedCard , getPlayerOfThisTurn (), getOpponentOfThisTurn (), ChainStartState .MONSTER_SUMMON );
263
- boolean canSummon = chain .startChain ();
264
-
265
- if (canSummon ) {
262
+ // Chain chain = new Chain(this, selectedCard, getPlayerOfThisTurn(), getOpponentOfThisTurn(), ChainStartState.MONSTER_SUMMON);
263
+ // boolean canSummon = chain.startChain();
264
+ //
265
+ // if (canSummon) {
266
266
GameBoard gameBoard = getPlayerGameBoard ();
267
267
CommandKnight .CommandKnightOnFieldWithSummonMode ((MonsterCard ) selectedCard ,
268
268
getPlayerGameBoard ().getMonsterField ());
@@ -279,10 +279,10 @@ public int summonMonster() {
279
279
this .selectedCard = null ;
280
280
return 6 ;
281
281
282
- } else {
283
- return -1 ;
284
-
285
- }
282
+ // } else {
283
+ // return -1;
284
+ //
285
+ // }
286
286
}
287
287
288
288
public void tributeSummon (ArrayList <Integer > cardsToTribute ) {
@@ -369,31 +369,31 @@ private boolean isTargetCellInDefensePosition(int numberOfEnemyMonsterZone) {
369
369
}
370
370
371
371
public int flipSummon () {
372
- Chain chain = new Chain (this , selectedCard , getPlayerOfThisTurn (), getOpponentOfThisTurn (), ChainStartState .MONSTER_FLIP_SUMMON );
373
- boolean canFlipSummon = chain .startChain ();
372
+ // Chain chain = new Chain(this, selectedCard, getPlayerOfThisTurn(), getOpponentOfThisTurn(), ChainStartState.MONSTER_FLIP_SUMMON);
373
+ // boolean canFlipSummon = chain.startChain();
374
374
375
- if (canFlipSummon ) {
375
+ // if (canFlipSummon) {
376
376
MonsterCard playerCard = (MonsterCard ) this .selectedCard ;
377
377
playerCard .setPosition (PositionMonsters .ATTACK );
378
378
this .selectedCard = playerCard ;
379
379
return 5 ;
380
380
381
- } else {
382
- return -1 ;
381
+ // } else {
382
+ // return -1;
383
383
384
- }
384
+ // }
385
385
}
386
386
387
387
public int attack (int numberOfEnemyMonsterZone ) {
388
388
int result = 0 ;
389
389
390
- Chain chain = new Chain (this , selectedCard , getPlayerOfThisTurn (), getOpponentOfThisTurn (), ChainStartState .MONSTER_ATTACK );
391
- boolean canAttack = chain .startChain ();
392
-
393
- if (!canAttack ) {
394
- result = -1 ;
395
-
396
- } else {
390
+ // Chain chain = new Chain(this, selectedCard, getPlayerOfThisTurn(), getOpponentOfThisTurn(), ChainStartState.MONSTER_ATTACK);
391
+ // boolean canAttack = chain.startChain();
392
+ //
393
+ // if (!canAttack) {
394
+ // result = -1;
395
+ //
396
+ // } else {
397
397
GameBoard opponentGameBoard = getOpponentGameBoard ();
398
398
GameBoard playerGameBoard = getPlayerGameBoard ();
399
399
MonsterCard playerCard = (MonsterCard ) this .selectedCard ;
@@ -416,7 +416,7 @@ public int attack(int numberOfEnemyMonsterZone) {
416
416
, opponentGameBoard );
417
417
}
418
418
this .selectedCard = null ;
419
- }
419
+ // }
420
420
return result ;
421
421
}
422
422
0 commit comments