Skip to content

Commit

Permalink
AttackController: Give required_turns param a default.
Browse files Browse the repository at this point in the history
Fixes #785.
  • Loading branch information
tchalvak committed Apr 27, 2016
1 parent ed9cea7 commit 5e6ac6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deploy/lib/control/AttackController.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ public function index() {
/**
* @return StreamedViewResponse
*/
private function combat(Player $attacker, Player $target, $required_turns, $options) {
private function combat(Player $attacker, Player $target, $required_turns=0, $options) {
$error = '';
$stealthed_attack = false;
$stealth_damage = false;
$stealth_lost = false;
$bounty_result = false;
$rewarded_ki = false;
$wrath = false;
$required_turns = 0;
$loot = 0;
$killpoints = 1;
$rounds = 1;
Expand Down

0 comments on commit 5e6ac6c

Please sign in to comment.