fix

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=11537&keyword=&tag=-1
http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=182&keyword=&tag=-1
The player can pay X LP cost when his LP is exactly X.

const.lua
In current rule, EVENT_BATTLE_END is at the same timing as EVENT_BATTLED

EFFECT_FLIP_O
In Master Rule 3, all flip effect are changed into trigger effect.
Some of them become optional trigger effect, and their type is changed into EFFECT_TYPE_FLIP_O, which is the same as EFFECT_TYPE_TRIGGER_O now.
Their target checkings are fixed.

EFFECT_TYPE_FLIP
The remaining flip effect are changed into forced trigger effect, and their type EFFECT_TYPE_FLIP is the same as EFFECT_TYPE_TRIGGER_F.
The timing is added, and every EFFECT_TYPE_FLIP monsters except c3056267 王座の侵略者 has the same condition aux.flipcon now.

Auxiliary.flipcon
The condition of EFFECT_TYPE_FLIP monsters, which assures that the effect of flip monsters will not activate when flipped by cards like c36468556 停戦協定.

EFFECT_FLAG_FLIP_DISABLE
The new flag  for cards like c36468556 停戦協定.

I change the whole flip effect system for 2 reasons:
1. In the new rule, they should be merged into trigger effect since the category "flip effect" no longer exist.
2. The old flip effect has some bugs. For example, trigger_f effects in damage step like c37043180 異次元の戦士  cannot work properly with flip effect.