var SupportCalculator = {
createTotalStatus: function(unit) {
var i, x, y, index, targetUnit, indexArray, count;
var totalStatus = {};

totalStatus.powerTotal = 0;
totalStatus.defenseTotal = 0;
totalStatus.hitTotal = 0;
totalStatus.avoidTotal = 0;
totalStatus.criticalTotal = 0;
totalStatus.criticalAvoidTotal = 0;
if (this._isStatusDisabled()) {
return totalStatus;
}
indexArray = IndexArray.getBestIndexArray(unit.getMapX(), unit.getMapY(), 1, this._getSupportRange());
count = indexArray.length;

// unitの一定範囲(既定3マス)にいるtargetUnitを探す
for (i = 0; i < count; i++) {
index = indexArray[i];
x = CurrentMap.getX(index);
y = CurrentMap.getY(index);
targetUnit = PosChecker.getUnitFromPos(x, y);
if (targetUnit !== null) {
// targetUnitが見つかった場合は、支援データをtotalStatusに加算
this._collectStatus(unit, targetUnit, totalStatus); 
          ↑この上の行を消して代わりにスキルの付与を行う記述を足したりしてるんだけどうまく行かないんだけどさ
}
}
this._collectSkillStatus(unit, totalStatus);
return totalStatus;
},