Skip to content

Commit

Permalink
Update Mimic to only target activate and attacked
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky authored May 22, 2019
1 parent 6ec862a commit dbcee9f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2083,8 +2083,9 @@ inline bool skill_predicate<Skill::mimic>(Field* fd, CardStatus* src, CardStatus
// skip dead units
if (!is_alive(dst)) return false;

//include on play/attacked/death
for(const auto a : {dst->m_card->m_skills,dst->m_card->m_skills_on_play,dst->m_card->m_skills_on_death,dst->m_card->m_skills_on_attacked})
//include on activate/attacked/death
//for(const auto & a : {dst->m_card->m_skills,dst->m_card->m_skills_on_play,dst->m_card->m_skills_on_death,dst->m_card->m_skills_on_attacked})
for(const auto & a : {dst->m_card->m_skills,dst->m_card->m_skills_on_attacked})
{
// scan all enemy skills until first activation
for (const auto & ss: a)
Expand Down Expand Up @@ -2360,8 +2361,9 @@ inline void perform_skill<Skill::mimic>(Field* fd, CardStatus* src, CardStatus*
std::vector<const SkillSpec *> mimickable_skills;
mimickable_skills.reserve(dst->m_card->m_skills.size()+dst->m_card->m_skills_on_play.size()+dst->m_card->m_skills_on_death.size()+dst->m_card->m_skills_on_attacked.size());
_DEBUG_MSG(2, " * Mimickable skills of %s\n", status_description(dst).c_str());
//include on play/attacked/death
for(const auto & a : {dst->m_card->m_skills,dst->m_card->m_skills_on_play,dst->m_card->m_skills_on_death,dst->m_card->m_skills_on_attacked})
//include on activate/attacked
//for(const auto & a : {dst->m_card->m_skills,dst->m_card->m_skills_on_play,dst->m_card->m_skills_on_death,dst->m_card->m_skills_on_attacked})
for(const auto & a : {dst->m_card->m_skills,dst->m_card->m_skills_on_attacked})
{
for (const auto & ss: a)
{
Expand Down

0 comments on commit dbcee9f

Please sign in to comment.