Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

Commit

Permalink
update_core
Browse files Browse the repository at this point in the history
  • Loading branch information
Smile-DK committed Dec 17, 2017
1 parent 075a122 commit 9ec4990
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ocgcore/processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2065,9 +2065,7 @@ int32 field::process_quick_effect(int16 step, int32 skip_freechain, uint8 priori
&& peffect->is_chainable(priority) && peffect->is_activateable(priority, clit->evt, TRUE)) {
for(auto cait = core.current_chain.begin(); cait != core.current_chain.end(); ++cait) {
if(cait->triggering_player == priority) {
effect* pchaineff = cait->triggering_effect;
if(!pchaineff->is_flag(EFFECT_FLAG_FIELD_ONLY) && (pchaineff->type & EFFECT_TYPE_TRIGGER_O)
&& cait->triggering_location == LOCATION_HAND && (pchaineff->range & LOCATION_HAND)) {
if(std::any_of(core.new_ochain_h.begin(), core.new_ochain_h.end(), [=](chain ch) { return ch.chain_id == cait->chain_id; })) {
act = false;
break;
}
Expand Down

0 comments on commit 9ec4990

Please sign in to comment.