Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created July 20, 2019 07:02
Show Gist options
  • Save triacontane/d00dc89d6f755464b2749e4b80686ac3 to your computer and use it in GitHub Desktop.
Save triacontane/d00dc89d6f755464b2749e4b80686ac3 to your computer and use it in GitHub Desktop.
味方の攻撃対象となった敵の情報を取得
// ラストターゲットのINDEXを取得
var index = BattleManager._subject._lastTargetIndex;
// 敵グループの情報からパラメータ(攻撃力を出力)
console.log($gameTroop.members()[index].param(2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment