Commit 0c4c7334 authored by salix5's avatar salix5

Revert "update card::add_effect() (#404)"

This reverts commit 6e88d92c.
parent 6e88d92c
...@@ -1649,13 +1649,6 @@ int32 card::add_effect(effect* peffect) { ...@@ -1649,13 +1649,6 @@ int32 card::add_effect(effect* peffect) {
if (peffect->type & EFFECT_TYPE_SINGLE && !peffect->is_flag(EFFECT_FLAG_SINGLE_RANGE) && peffect->owner == this 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)) && get_status(STATUS_DISABLED) && (peffect->reset_flag & RESET_DISABLE))
return 0; return 0;
// the trigger effect in phase is "once per turn" by default
if (peffect->code & EVENT_PHASE && peffect->code & (PHASE_DRAW | PHASE_STANDBY | PHASE_END) && peffect->type & (EFFECT_TYPE_TRIGGER_O | EFFECT_TYPE_TRIGGER_F)
&& !peffect->is_flag(EFFECT_FLAG_COUNT_LIMIT)) {
peffect->flag[0] |= EFFECT_FLAG_COUNT_LIMIT;
peffect->count_limit = 1;
peffect->count_limit_max = 1;
}
card_set check_target = { this }; card_set check_target = { this };
effect_container::iterator eit; effect_container::iterator eit;
if (peffect->type & EFFECT_TYPE_SINGLE) { 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