attackOnTarget: function (atkDir, targetPos) { var self = this; let deg = cc.radiansToDegrees(cc.pAngleSigned(cc.p(0, 1), atkDir)); let angleDivider = [0, 12, 35, 56, 79, 101, 124, 146, 168, 180]; function getAtkSF(mag, sfAtkDirs) { let atkSF = null;…