Puts Copyable Moves in its own namespace for clarity, began working on assist unit tests
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Gen7 {
|
||||
for (uint j = 0; j < moves.length; j++){
|
||||
auto m = moves[j];
|
||||
if (m is null){ continue; }
|
||||
if (CanCopyMove(m.MoveData)){
|
||||
if (CopyableMoves::CanCopyMove(m.MoveData)){
|
||||
possibleMoves.insertLast(m.MoveData);
|
||||
}
|
||||
}
|
||||
@@ -28,4 +28,16 @@ namespace Gen7 {
|
||||
moveName = possibleMoves[i].Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if TESTS
|
||||
[Test name="Assist: Switch move to known move from party member"]
|
||||
void Assist_ChangesMove(){
|
||||
auto p1 = CreateSimpleParty({"charizard", "blastoise"}, 100);
|
||||
auto p2 = CreateSimpleParty({"venusaur", "pikachu"}, 100);
|
||||
|
||||
auto battle = CreateSimpleBattle(684, p1, p2);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user