赞 | 22 |
VIP | 1 |
好人卡 | 0 |
积分 | 7 |
经验 | 1762 |
最后登录 | 2018-6-11 |
在线时间 | 135 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 739
- 在线时间
- 135 小时
- 注册时间
- 2012-7-1
- 帖子
- 185
|
判断改一下
<Custom Conclude Effect>
// Check if the target is hit, alive, the action is physical, and dealing damage.
if (target) {
// Play animation on target.
target.startAnimation(3);
// Get the amount of damage dealt.
var dmg = 50;
var el=target.elementRate(2)
// Make the target lose HP.
target.gainHp(Math.ceil(-dmg*el));
// Disable critical hit effects.
target.result().critical = false;
// Start the damage popup.
target.startDamagePopup();
if(target.isDead()){
target.performCollapse()
}
// Clear the result.
target.clearResult();
}
</Custom Conclude Effect> |
|