<Custom Apply Effect>
if (target.isStateAffected(XXX)) {//如果有flag状态
target.performCollapse();
if (target.isActor()) {
target.startAnimation(XXX, true);//复活动画 镜像显示
} else {
target.startAnimation(XXX, false);//复活动画 非镜像显示
}
BattleManager.actionWaitForAnimation();
target.gainHp(target.mhp); //回复满血
target.startDamagePopup();//显示回复
target.removeState(AAA);//清除AAA状态
}
</Custom Apply Effect>
<Custom Apply Effect>
if (target.isStateAffected(XXX)) {//如果有flag状态
target.performCollapse();
if (target.isActor()) {
target.startAnimation(XXX, true);//复活动画 镜像显示
} else {
target.startAnimation(XXX, false);//复活动画 非镜像显示
}
BattleManager.actionWaitForAnimation();
target.gainHp(target.mhp); //回复满血
target.startDamagePopup();//显示回复
target.removeState(AAA);//清除AAA状态
}
</Custom Apply Effect>