mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-20 22:12:55 -05:00
Don't require items for formes in Hackmons
This commit is contained in:
parent
144aeec99c
commit
f1cf55e5c8
|
|
@ -1716,8 +1716,12 @@
|
|||
if (template.gender && template.gender !== 'N') set.gender = template.gender;
|
||||
if (set.happiness) delete set.happiness;
|
||||
if (set.shiny) delete set.shiny;
|
||||
var formatsData = window.BattleFormatsData && BattleFormatsData[template.speciesid];
|
||||
set.item = (formatsData.requiredItem || '');
|
||||
if (this.curTeam.format !== 'balancedhackmons') {
|
||||
var formatsData = window.BattleFormatsData && BattleFormatsData[template.speciesid];
|
||||
set.item = (formatsData.requiredItem || '');
|
||||
} else {
|
||||
set.item = '';
|
||||
}
|
||||
set.ability = template.abilities['0'];
|
||||
set.moves = [];
|
||||
set.evs = {};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user