Changeset 37


Ignore:
Timestamp:
Mar 8, 2014, 12:13:27 AM (11 years ago)
Author:
chronos
Message:
  • Fixed: Player inner move and computer attack power computation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r36 r37  
    485485          // Use only necessary power
    486486          AttackPower := Power - TotalAttackPower + 1;
    487           if Cells[I].Power < AttackPower then
    488             AttackPower := Cells[I].Power;
     487          if Cells[I].GetAvialPower < AttackPower then
     488            AttackPower := Cells[I].GetAvialPower;
    489489          Game.SetMove(Cells[I], Game.Map.Cells[Y, X], AttackPower);
    490490          TotalAttackPower := TotalAttackPower + AttackPower;
     
    607607      if CellTo.Player = Player then begin
    608608        // Inner move
     609        CellTo.Power := CellTo.Power + CountOnce;
    609610      end else begin
    610611        AttackerPower := CountOnce;
Note: See TracChangeset for help on using the changeset viewer.