Commit 8acb0c4c authored by salix5's avatar salix5

fix card::add_effect()

1. Change the status of X, and then negate the effect of X.
2. Negate the effect of X, and then change the status of X.
The 2 ways should get the same result.
parent f9be2090
......@@ -1637,6 +1637,9 @@ int32 card::add_effect(effect* peffect) {
}
if (indexer.find(peffect) != indexer.end())
return 0;
if (peffect->type & EFFECT_TYPE_SINGLE && !peffect->is_flag(EFFECT_FLAG_SINGLE_RANGE) && peffect->owner == this
&& get_status(STATUS_DISABLED) && (peffect->reset_flag & RESET_DISABLE))
return 0;
card_set check_target = { this };
effect_container::iterator eit;
if (peffect->type & EFFECT_TYPE_SINGLE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment