scenario[legacy]: do not nuke all monsters if particuliar type==0...

This commit is contained in:
Laurent Alonso(fr)
2020-06-12 19:58:36 +02:00
committed by Celtic Minstrel
parent 3d6fca22a5
commit 97974d849e

View File

@@ -358,6 +358,8 @@ void cSpecial::import_legacy(legacy::special_node_type& old){
break; break;
case 182: // Destroy all monsters of particular type case 182: // Destroy all monsters of particular type
type = eSpecType::TOWN_NUKE_MONSTS; type = eSpecType::TOWN_NUKE_MONSTS;
if (ex1a>=-2 && ex1a<=0) // FIXME: if ex1a:type==0, we do not want to remove all monsters
ex1a=-3;
break; break;
case 183: // Destroy all monsters, or all friendly / all hostile case 183: // Destroy all monsters, or all friendly / all hostile
type = eSpecType::TOWN_NUKE_MONSTS; type = eSpecType::TOWN_NUKE_MONSTS;