本帖最后由 markoray 于 2016-8-29 15:22 编辑
<Custom React Effect> if (target.barrierPoints() <= 0) { if (target.mp > 0) { if (Math.random() < 0.1) { value = 0; target.startAnimation(151); } value *= 0.5; value = Math.floor(value) if (value > 0) { target.gainMp(~~(- value * 0.25)); target.startAnimation(151); } }; if (target.mp == 0) { target.removeState(58); } }; </Custom React Effect>
<Custom React Effect>
if (target.barrierPoints() <= 0) {
if (target.mp > 0) {
if (Math.random() < 0.1) {
value = 0;
target.startAnimation(151);
}
value *= 0.5;
value = Math.floor(value)
if (value > 0) {
target.gainMp(~~(- value * 0.25));
target.startAnimation(151);
}
};
if (target.mp == 0) {
target.removeState(58);
}
};
</Custom React Effect>
用LZ所说的YEP插件实现的魔法盾技能,在拥有【58】状态时,有10%概率无视伤害,否则伤害的一半将由魔法值承担,一点魔法值可以抵消4点伤害,显示动画【151】。
如果该目标的魔法值为0,那么移除状态【58】。
如果同时被添加了防护盾barrier,那么就优先扣除防护盾值。
对于治疗效果是不会触发的。 |