Commit 5758f758 authored by mercury233's avatar mercury233 Committed by mercury233

comment for is_continuous_event

parent 3e47c6f8
......@@ -18,9 +18,9 @@ bool effect_sort_id(const effect* e1, const effect* e2) {
bool is_continuous_event(uint32 code) {
if (code & EVENT_CUSTOM)
return false;
else if (code & 0xf0000)
else if (code & 0xf0000) // EVENT_ADD_COUNTER, EVENT_REMOVE_COUNTER
return false;
else if (code & 0xf000)
else if (code & 0xf000) // EVENT_PHASE_START must be continuous, but other EVENT_PHASE must not be
return !!(code & EVENT_PHASE_START);
else
return continuous_event.find(code) != continuous_event.end();
......
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