Removed game dependency from FighterInterface->getAttack and getDefense

This commit is contained in:
Vassyli
2018-01-09 09:25:37 +01:00
parent 45a785a8f5
commit 55b821c8e8
7 changed files with 31 additions and 20 deletions
+2 -2
View File
@@ -56,8 +56,8 @@ class BattleTest extends CoreModelTestCase
$this->assertSame(5, $monster->getLevel());
$this->assertSame(52, $monster->getMaxHealth());
$this->assertSame(9, $monster->getAttack($this->getMockGame($character)));
$this->assertSame(7, $monster->getDefense($this->getMockGame($character)));
$this->assertSame(9, $monster->getAttack());
$this->assertSame(7, $monster->getDefense());
$this->assertSame($monster->getMaxHealth(), $monster->getHealth());
}