Tweaks for Battle and ScriptSet, added Battle C interface.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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]") {
|
||||
|
||||
Reference in New Issue
Block a user