Commit 37faac25 authored by mercury233's avatar mercury233 Committed by GitHub

fix dec_count (#198)

parent d4e39064
...@@ -594,7 +594,8 @@ void effect::dec_count(uint32 playerid) { ...@@ -594,7 +594,8 @@ void effect::dec_count(uint32 playerid) {
return; return;
if(count_limit == 0) if(count_limit == 0)
return; return;
count_limit -= 1; if(count_code == 0 || is_flag(EFFECT_FLAG_NO_TURN_RESET))
count_limit -= 1;
if(count_code) { if(count_code) {
uint32 code = count_code & 0xfffffff; uint32 code = count_code & 0xfffffff;
if(code == 1) if(code == 1)
......
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