Tweaks for Battle and ScriptSet, added Battle C interface.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-09 10:16:57 +01:00
parent 1afb13cfd1
commit ce2fc320bd
6 changed files with 84 additions and 19 deletions

View File

@@ -176,12 +176,12 @@ TEST_CASE("Switch Creature in", "[Integrations]") {
battle.SwitchCreature(0, 0, c1);
battle.SwitchCreature(1, 0, c3);
REQUIRE(battle.GetTarget(CreatureIndex(0, 0)) == c1);
REQUIRE(battle.GetCreature(CreatureIndex(0, 0)) == c1);
battle.TrySetChoice(new SwitchTurnChoice(c1, c2));
battle.TrySetChoice(new PassTurnChoice(c3));
REQUIRE(battle.GetTarget(CreatureIndex(0, 0)) == c2);
REQUIRE(battle.GetCreature(CreatureIndex(0, 0)) == c2);
}
TEST_CASE("Switch Creature in, but have attack aimed at it. Attack should hit new creature", "[Integrations]") {