Commit 3f1171c8 authored by salix5's avatar salix5

card::add_effect()

parent b682f15c
......@@ -1007,7 +1007,7 @@ int32 card::add_effect(effect* peffect) {
return 0;
card* check_target = this;
if (peffect->type & EFFECT_TYPE_SINGLE) {
if(peffect->code == EFFECT_SET_ATTACK && !(peffect->flag & EFFECT_FLAG_SINGLE_RANGE)) {
if((peffect->code == EFFECT_SET_ATTACK || peffect->code == EFFECT_SET_BASE_ATTACK) && !(peffect->flag & EFFECT_FLAG_SINGLE_RANGE)) {
for(it = single_effect.begin(); it != single_effect.end();) {
rm = it++;
if((rm->second->code == EFFECT_SET_ATTACK || rm->second->code == EFFECT_SET_ATTACK_FINAL)
......
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