fix for setGameType, asie and BrisingrAerowing were right

closes #2911
This commit is contained in:
payonel 2020-01-30 19:17:25 -08:00
parent 67c375391b
commit a19bb2b692

View File

@ -382,7 +382,7 @@ object DebugCard {
def setGameType(context: Context, args: Arguments): Array[AnyRef] =
withPlayer(player => {
val gametype = args.checkString(0)
player.setGameType(GameType.values.find(_.name == gametype).getOrElse(GameType.SURVIVAL))
player.setGameType(GameType.values.find(_.getName == gametype).getOrElse(GameType.SURVIVAL))
null
})