Skip to content

Commit

Permalink
merge silvally forms (#2358)
Browse files Browse the repository at this point in the history
* change manaphy & phione anims

* merge silvally forms
  • Loading branch information
sylvainpolletvillard authored Oct 22, 2024
1 parent 4b07011 commit 847ea10
Show file tree
Hide file tree
Showing 25 changed files with 251 additions and 731 deletions.
14 changes: 8 additions & 6 deletions app/core/abilities/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8305,15 +8305,17 @@ export class MultiAttackStrategy extends AbilityStrategy {
crit: boolean
) {
super.process(pokemon, state, board, target, crit)
const silvallyType = values(pokemon.types).at(-1)
let synergyLevelsCount = 0
const synergies = pokemon.player?.synergies
let synergyLevelCount = 0

if (synergies && silvallyType && synergies.has(silvallyType)) {
synergyLevelCount = synergies.get(silvallyType)!
if (synergies) {
pokemon.types.forEach((type) => {
if (type !== Synergy.ARTIFICIAL) {
synergyLevelsCount += synergies.get(type) ?? 0
}
})
}
const damage = 15 * synergyLevelCount

const damage = 15 * synergyLevelsCount
board
.getAdjacentCells(pokemon.positionX, pokemon.positionY)
.map((v) => v.value)
Expand Down
Loading

0 comments on commit 847ea10

Please sign in to comment.