diff --git a/sim.cpp b/sim.cpp index a37469c8..98fc6fb3 100644 --- a/sim.cpp +++ b/sim.cpp @@ -1369,7 +1369,7 @@ inline bool skill_predicate(Field* fd, CardStatus* src, CardStatus* ds template<> inline bool skill_predicate(Field* fd, CardStatus* src, CardStatus* dst, const SkillSpec& s) { - return fd->tapi == dst->m_player ? is_active(dst) && !has_attacked(dst) : is_active_next_turn(dst); + return ! dst->m_sundered && (fd->tapi == dst->m_player ? is_active(dst) && !has_attacked(dst) : is_active_next_turn(dst)); } template<> diff --git a/tyrant.h b/tyrant.h index 50a28b77..c74d6685 100644 --- a/tyrant.h +++ b/tyrant.h @@ -1,7 +1,7 @@ #ifndef TYRANT_H_INCLUDED #define TYRANT_H_INCLUDED -#define TYRANT_OPTIMIZER_VERSION "2.16.0" +#define TYRANT_OPTIMIZER_VERSION "2.16.1" #include #include