mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-27 18:00:03 +00:00
Resolve #27
This commit is contained in:
@@ -1251,6 +1251,7 @@ class @BattleView extends Backbone.View
|
||||
|
||||
isIllusioned: (pokemon) =>
|
||||
illusionmons = ['Zoroark', 'Zorua']
|
||||
console.log(pokemon.getIllu())
|
||||
return true if (pokemon.attributes.species in illusionmons) and pokemon.attributes.percent == 100 and @model.attributes.turn <= 1
|
||||
return true if pokemon.getIllu()
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user