mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-09-02 00:47:19 +00:00
Made Ethereal Shroud handle immunities better, removed log spam of eeveelutions
This commit is contained in:
parent
1fc7b2ecbf
commit
7107926865
@ -769,7 +769,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
learnable.splice(remindex, 1);
|
learnable.splice(remindex, 1);
|
||||||
console.log(learnable);
|
|
||||||
}
|
}
|
||||||
return _.chain(learnable).flatten().sort().unique().value();
|
return _.chain(learnable).flatten().sort().unique().value();
|
||||||
};
|
};
|
||||||
|
@ -769,7 +769,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
learnable.splice(remindex, 1);
|
learnable.splice(remindex, 1);
|
||||||
console.log(learnable);
|
|
||||||
}
|
}
|
||||||
return _.chain(learnable).flatten().sort().unique().value();
|
return _.chain(learnable).flatten().sort().unique().value();
|
||||||
};
|
};
|
||||||
|
@ -472,6 +472,10 @@ class @Pokemon
|
|||||||
return false if options.move?.ignoresImmunities()
|
return false if options.move?.ignoresImmunities()
|
||||||
|
|
||||||
multiplier = @effectivenessOf(type, options)
|
multiplier = @effectivenessOf(type, options)
|
||||||
|
if @hasAbility("Ethereal Shroud")
|
||||||
|
ghosteffect = util.typeEffectiveness(type, ["Ghost"])
|
||||||
|
if ghosteffect < 1
|
||||||
|
multiplier *= ghosteffect
|
||||||
return multiplier == 0
|
return multiplier == 0
|
||||||
|
|
||||||
effectivenessOf: (type, options) ->
|
effectivenessOf: (type, options) ->
|
||||||
|
@ -139,7 +139,6 @@ self.learnableMoves = (Generations, pokemon, forGeneration) ->
|
|||||||
if "Hydro Pump" in ele and "Flare Blitz" in ele and "Psychic" in ele and pokemon.species != 'Eevee'
|
if "Hydro Pump" in ele and "Flare Blitz" in ele and "Psychic" in ele and pokemon.species != 'Eevee'
|
||||||
remindex = index
|
remindex = index
|
||||||
learnable.splice(remindex, 1)
|
learnable.splice(remindex, 1)
|
||||||
console.log(learnable)
|
|
||||||
|
|
||||||
_.chain(learnable).flatten().sort().unique().value()
|
_.chain(learnable).flatten().sort().unique().value()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user