From 79ab6e89c44e3fbbbbea9d990fe67b95092cba48 Mon Sep 17 00:00:00 2001 From: andor9 <9andor@gmail.com> Date: Wed, 6 Jan 2016 13:38:52 -0500 Subject: [PATCH] Fix bug: skill Sunder. --- sim.cpp | 2 +- tyrant.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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