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

fix overdraw in draw phase (#421)

parent 3882384c
...@@ -377,6 +377,8 @@ int32 field::draw(uint16 step, effect* reason_effect, uint32 reason, uint8 reaso ...@@ -377,6 +377,8 @@ int32 field::draw(uint16 step, effect* reason_effect, uint32 reason, uint8 reaso
} }
core.hint_timing[playerid] |= TIMING_DRAW + TIMING_TOHAND; core.hint_timing[playerid] |= TIMING_DRAW + TIMING_TOHAND;
adjust_instant(); adjust_instant();
if(core.overdraw[playerid] && (reason & REASON_RULE))
adjust_all();
core.units.begin()->arg2 = (core.units.begin()->arg2 & 0xff000000) + drawed; core.units.begin()->arg2 = (core.units.begin()->arg2 & 0xff000000) + drawed;
card_set* drawed_set = new card_set; card_set* drawed_set = new card_set;
core.units.begin()->ptarget = (group*)drawed_set; core.units.begin()->ptarget = (group*)drawed_set;
......
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