Skip to content

Commit

Permalink
Update data/abilities.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored Jan 3, 2024
1 parent add2565 commit 0e33282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
},
// The Dive part of this mechanic is implemented in Dive's `onTryMove` in moves.ts
onSourceTryPrimaryHit(target, source, effect) {
if (effect && effect.id === 'surf' && source.hasAbility('gulpmissile') && source.species.name === 'Cramorant') {
if (effect?.id === 'surf' && source.hasAbility('gulpmissile') && source.species.name === 'Cramorant') {
const forme = source.hp <= source.maxhp / 2 ? 'cramorantgorging' : 'cramorantgulping';
source.formeChange(forme, effect);
}
Expand Down

0 comments on commit 0e33282

Please sign in to comment.