mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 08:19:33 +02:00
ugh
This commit is contained in:
parent
8c1adbc2f0
commit
4562699e84
@ -1538,8 +1538,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
* @returns The type damage multiplier, indicating the effectiveness of the move
|
* @returns The type damage multiplier, indicating the effectiveness of the move
|
||||||
*/
|
*/
|
||||||
getMoveEffectiveness(source: Pokemon, move: Move, ignoreAbility: boolean = false, simulated: boolean = true, cancelled?: Utils.BooleanHolder): TypeDamageMultiplier {
|
getMoveEffectiveness(source: Pokemon, move: Move, ignoreAbility: boolean = false, simulated: boolean = true, cancelled?: Utils.BooleanHolder): TypeDamageMultiplier {
|
||||||
if (!Utils.isNullOrUndefined(this.turnData.moveEffectiveness)) {
|
if (!Utils.isNullOrUndefined(this.turnData?.moveEffectiveness)) {
|
||||||
return this.turnData.moveEffectiveness;
|
return this.turnData?.moveEffectiveness;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (move.hasAttr(TypelessAttr)) {
|
if (move.hasAttr(TypelessAttr)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user