AfterBattle Animate

This commit is contained in:
oc 2018-09-28 10:53:02 +08:00
parent f2f2f3bd19
commit 3d17624898

View File

@ -123,9 +123,8 @@ functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
var equipAnimate = 'hand';
if (core.flags.equipment) {
var equipId = (core.status.hero.equipment||[])[0];
if (core.isset(equipId) && core.isset(core.material.items[equipId])
&& core.isset(core.material.items[equipId].equip.animate))
equipAnimate = core.material.items[equipId].equip.animate;
if (core.isset(core.material.items[equipId]) && core.isset(core.material.items[equipId].equip.animate))
equipAnimate = core.material.items[equipId].equip.animate;
}
core.playSound('attack.mp3');
core.drawAnimate(equipAnimate, x, y);