根据你刚刚说的。修改了一下代码。
当技能属性为物理属性的时候(参照【类型】中的【属性】)或者 为普通攻击的时候(考虑到有时候武器会自带属性,没有测试这个代码多种属性同时生效的效果,没准会BUG)
<Custom Conclude Effect> var elements = this.getItemElements(); while (elements.length > 0) { if(elements.shift() === 1 || this.item().id === 1){ target.startAnimation(67); } } </Custom Conclude Effect>
<Custom Conclude Effect>
var elements = this.getItemElements();
while (elements.length > 0) {
if(elements.shift() === 1 || this.item().id === 1){
target.startAnimation(67);
}
}
</Custom Conclude Effect>
如果只想要物理属性生效,
<Custom Conclude Effect> var elements = this.getItemElements(); while (elements.length > 0) { if(elements.shift() === 1 ){ target.startAnimation(67); } } </Custom Conclude Effect>
<Custom Conclude Effect>
var elements = this.getItemElements();
while (elements.length > 0) {
if(elements.shift() === 1 ){
target.startAnimation(67);
}
}
</Custom Conclude Effect>
|