I've made a healing skill which is a little overpowered, it heals all allies, but I want this to be devided equally for all allies.
Then I realised that if I want to give it to an enemy, this skill should count the length of the enemies in the troop instead. I came up with this code and put it in the Damage Formula, but enemies nor allies heal at all now. Please help me, it might be a tiny error!
Then I realised that if I want to give it to an enemy, this skill should count the length of the enemies in the troop instead. I came up with this code and put it in the Damage Formula, but enemies nor allies heal at all now. Please help me, it might be a tiny error!
JavaScript:
if (this.isEnemy()) {
(300 + a.mat) / $gameTroop.aliveMembers().length
} else {
(300 + a.mat) / $gameParty.aliveMembers().length
}