Split Damage?

Hey there. So... Here's the deal.

Let's say I want to have a character use Thundaga against a group of enemies in a game on RPG Maker VX Ace. If there are 3 enemies in the group, then Thundaga would do 100 damage to each of the 3 enemies. If there was only one enemy, then Thundaga would do 300 damage to that single enemy. Basically, the damage I do with Thundaga would depend on how many enemies there are in a group; this phenomenon would be known as "split damage." How can I get this thing to work?
Damage Formula:
Code:
300 / $game_troop.alive_members.size
Damage Formula:
Code:
300 / $game_troop.alive_members.size
Well dang. That actually worked. Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/split-damage.86244/