Commit f8eab488 authored by mercury233's avatar mercury233 Committed by GitHub

fix active_type of continuous trap (#804)

parent f7137d7d
...@@ -4148,6 +4148,7 @@ int32_t field::add_chain(uint16_t step) { ...@@ -4148,6 +4148,7 @@ int32_t field::add_chain(uint16_t step) {
clit.triggering_effect = peffect; clit.triggering_effect = peffect;
clit.evt = ch.evt; clit.evt = ch.evt;
phandler->create_relation(clit); phandler->create_relation(clit);
peffect->set_active_type();
peffect->dec_count(playerid); peffect->dec_count(playerid);
if(!(peffect->type & EFFECT_TYPE_ACTIVATE)) { if(!(peffect->type & EFFECT_TYPE_ACTIVATE)) {
peffect->type |= EFFECT_TYPE_ACTIVATE; peffect->type |= EFFECT_TYPE_ACTIVATE;
......
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