Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
keldaan-ag committed Apr 30, 2024
1 parent e4b4794 commit e58aac0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/models/colyseus-models/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5148,7 +5148,7 @@ export class Eevee extends Pokemon {
Item.DAWN_STONE,
Item.ICE_STONE
],
(pokemon: Pokemon, player: Player, item?: Item) => {
(pokemon, player, item) => {
switch (item) {
case Item.WATER_STONE:
return Pkm.VAPOREON
Expand Down Expand Up @@ -5401,7 +5401,7 @@ function updateCastform(pokemon: Pokemon, weather: Weather, player: Player) {
}

if (pokemon.name === weatherForm) return
if(!player) return
if (!player) return

const newPokemon = PokemonFactory.createPokemonFromName(weatherForm, player)
pokemon.items.forEach((item) => {
Expand Down Expand Up @@ -8387,7 +8387,8 @@ export class Granbull extends Pokemon {
const rksSystemEvolutionRule = (itemToExclude: Item | null) =>
new ItemEvolutionRule(
SynergyItems.filter((i) => i !== itemToExclude),
(pokemon: Pokemon, player: Player, item?: Item) => {
(pokemon, player, item_) => {
const item = item_ as Item | undefined
switch (item) {
case Item.OLD_AMBER:
return Pkm.SILVALLY_FOSSIL
Expand Down Expand Up @@ -10331,7 +10332,8 @@ export class Tyrogue extends Pokemon {
passive = Passive.TYROGUE
attackSprite = AttackSprite.FIGHTING_MELEE

evolutionRule = new ItemEvolutionRule(AllItems, (pokemon, player, item) => {
evolutionRule = new ItemEvolutionRule(AllItems, (pokemon, player, item_) => {
const item = item_ as Item
if (
item === Item.CHARCOAL ||
item === Item.MAGNET ||
Expand Down

0 comments on commit e58aac0

Please sign in to comment.