diff --git a/plugins/cursecheck.cpp b/plugins/cursecheck.cpp index 4a36f4841..dd820cd35 100644 --- a/plugins/cursecheck.cpp +++ b/plugins/cursecheck.cpp @@ -162,7 +162,7 @@ command_result cursecheck (color_ostream &out, vector & parameters) // filter out all "living" units that are currently removed from play // don't spam all completely dead creatures if not explicitly wanted - if((unit->flags1.bits.dead && !unit->flags2.bits.killed) || (unit->flags2.bits.killed && ignoreDead)) + if((!Units::isActive(unit) && !Units::isKilled(unit)) || (Units::isKilled(unit) && ignoreDead)) { continue; }