Skip to content

Commit

Permalink
SGgame: Check if battle is sggame for the exp (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Volco authored and HoeenCoder committed Dec 30, 2017
1 parent 36cbf15 commit ef6707d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Pokemon {
if (this.gender === 'N') this.gender = '';
this.happiness = typeof set.happiness === 'number' ? this.battle.clampIntRange(set.happiness, 0, 255) : 255;
this.pokeball = this.set.pokeball || 'pokeball';
this.exp = this.set.exp || WL.calcExp(this.speciesid, this.level);
if (this.battle.getFormat().useSGgame) this.exp = this.set.exp || WL.calcExp(this.speciesid, this.level);
this.slot = (!slot && slot !== 0 ? this.side.pokemon.length - 1 : slot);

this.fullname = this.side.id + ': ' + this.name;
Expand Down

0 comments on commit ef6707d

Please sign in to comment.