Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Custom Requirement>
- // Get the group that the user belongs to.
- var group = user.friendsUnit();
- // Get the alive members of the group.
- var allies = group.aliveMembers();
- // Check to see if there are more than 1 allied members (user + ally).
- value = allies.length > 1;
- </Custom Requirement>
- <Custom Cost Display>
- \i[1]Ally
- </Custom Cost Display>
- <Custom Execution>
- // Get the group that the user belongs to.
- var group = user.friendsUnit();
- // Get the alive members of the group.
- var allies = group.aliveMembers();
- // Remove the user from the group.
- allies.splice(allies.indexOf(user), 1);
- // Pick a random ally.
- var ally = allies[Math.floor(Math.random() * allies.length)];
- // Store the ally's current HP value with the user.
- user._allyHp = ally.hp;
- // Store the ally's current MAT value with the user.
- user._allyMat = ally.mat;
- // Play animation 65 on the ally.
- ally.startAnimation(65);
- // Time to kill off the ally.
- ally.gainHp(-1 * ally.hp);
- // Perform the collapse effect on the ally.
- ally.performCollapse();
- </Custom Execution>
- <Damage Formula>
- // Damage Formula used for the skill.
- value = user._allyHp + user._allyMat * 14;
- // Remove stored ally HP value.
- user._allyHp = undefined;
- // Remove stored ally MAT value.
- user._allyMat = undefined;
- </Damage Formula>
Advertisement
Add Comment
Please, Sign In to add comment