1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-10-27 18:00:03 +00:00
This commit is contained in:
Deukhoofd
2016-02-26 22:32:33 +01:00
parent ed22806774
commit e08531263e
7 changed files with 11 additions and 5 deletions

View File

@@ -4835,6 +4835,7 @@
BattleView.prototype.isIllusioned = function(pokemon) {
var illusionmons, _ref;
illusionmons = ['Zoroark', 'Zorua'];
console.log(pokemon.getIllu());
if ((_ref = pokemon.attributes.species, __indexOf.call(illusionmons, _ref) >= 0) && pokemon.attributes.percent === 100 && this.model.attributes.turn <= 1) {
return true;
}

File diff suppressed because one or more lines are too long

View File

@@ -4561,6 +4561,7 @@
BattleView.prototype.isIllusioned = function(pokemon) {
var illusionmons, _ref;
illusionmons = ['Zoroark', 'Zorua'];
console.log(pokemon.getIllu());
if ((_ref = pokemon.attributes.species, __indexOf.call(illusionmons, _ref) >= 0) && pokemon.attributes.percent === 100 && this.model.attributes.turn <= 1) {
return true;
}