Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- volatileStatus: 'dynamax',
- effect: {
- duration: 3,
- onFlinch: false,
- onStart(target) {
- this.add('-start', target, 'move: Dynamax');
- let newHP = Math.floor((Math.floor(2 * target.template.baseStats['hp'] + target.set.ivs['hp'] + Math.floor(target.set.evs['hp'] / 4) + 100) * target.level / 100 + 10) * 1.5);
- target.hp = Math.floor(target.hp * 1.5);
- target.maxhp = newHP;
- this.add('-heal', target, target.getHealth, '[silent]');
- },
- onModifyPriority(priority, pokemon, target, move) {
- if (move) {
- if (move.category === 'Status') return 4;
- else return 0;
- }
- },
- onUpdate(pokemon) {
- if (this.effectData.source && !this.effectData.source.isActive && pokemon.volatiles['dynamax']) {
- this.debug('Removing Dynamax volatile on ' + pokemon);
- pokemon.removeVolatile('dynamax');
- }
- },
- onEnd(pokemon) {
- this.add('-end', pokemon, 'Dynamax');
- let newHP = Math.floor(Math.floor(2 * pokemon.template.baseStats['hp'] + pokemon.set.ivs['hp'] + Math.floor(pokemon.set.evs['hp'] / 4) + 100) * pokemon.level / 100 + 10);
- pokemon.hp = Math.ceil(pokemon.hp / 1.5);
- pokemon.maxhp = newHP;
- this.add('-heal', pokemon, pokemon.getHealth, '[silent]');
- },
- },
- secondary: null,
- target: "normal",
- type: "Normal",
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement