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

fix pre_equip_target (#362)

parent bc630f2e
......@@ -1919,6 +1919,9 @@ void card::reset(uint32 id, uint32 reset_type) {
for(; pr.first != pr.second; ++pr.first)
pr.first->second->value = pr.first->second->value & 0xffff;
}
if(id & RESET_TOFIELD) {
pre_equip_target = 0;
}
if(id & RESET_DISABLE) {
for(auto cmit = counters.begin(); cmit != counters.end();) {
auto rm = cmit++;
......
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