Skip to content

Commit

Permalink
Balance-10-04-24 (#1645)
Browse files Browse the repository at this point in the history
* changed lock on ability

* buff zorua lines

* add cooldown to anchor shot
  • Loading branch information
sylvainpolletvillard authored Apr 13, 2024
1 parent 311acc5 commit 2f9116a
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 20 deletions.
9 changes: 5 additions & 4 deletions app/core/abilities/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5562,27 +5562,28 @@ export class AnchorShotStrategy extends AbilityStrategy {
pokemon.positionX,
pokemon.positionY
)
const potentials = shuffleArray(
const emptyCellsAround = shuffleArray(
adjacentCells
.filter((v) => v.value === undefined)
.map((v) => ({ x: v.x, y: v.y }))
)
if (potentials.length > 0) {
const potential = potentials[0]
if (emptyCellsAround.length > 0) {
const destination = emptyCellsAround[0]
pokemon.simulation.room.broadcast(Transfer.ABILITY, {
id: pokemon.simulation.id,
skill: Ability.ANCHOR_SHOT,
targetX: farthestTarget.positionX,
targetY: farthestTarget.positionY
})
farthestTarget.moveTo(potential.x, potential.y, board)
farthestTarget.moveTo(destination.x, destination.y, board)
farthestTarget.handleSpecialDamage(
damage,
board,
AttackType.SPECIAL,
pokemon,
crit
)
farthestTarget.cooldown = min(500)(farthestTarget.cooldown)
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions app/core/attacking-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ export default class AttackingState extends PokemonState {
trueDamagePart += 0.25
}
if (pokemon.effects.has(Effect.LOCK_ON) && target) {
trueDamagePart += 1.0 + pokemon.ap / 100
target.status.triggerArmorReduction(3000, target)
trueDamagePart += 2.0 * (1 + pokemon.ap / 100)
pokemon.effects.delete(Effect.LOCK_ON)
}

Expand Down
8 changes: 4 additions & 4 deletions app/models/colyseus-models/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9794,7 +9794,7 @@ export class Zorua extends Pokemon {
atk = 8
def = 2
speDef = 2
maxPP = 100
maxPP = 85
range = 1
skill = Ability.ILLUSION
additional = true
Expand All @@ -9809,7 +9809,7 @@ export class Zoroark extends Pokemon {
atk = 18
def = 4
speDef = 4
maxPP = 100
maxPP = 85
range = 1
skill = Ability.ILLUSION
additional = true
Expand All @@ -9825,7 +9825,7 @@ export class HisuiZorua extends Pokemon {
atk = 8
def = 2
speDef = 2
maxPP = 100
maxPP = 85
range = 1
skill = Ability.ILLUSION
additional = true
Expand All @@ -9840,7 +9840,7 @@ export class HisuiZoroark extends Pokemon {
atk = 18
def = 4
speDef = 4
maxPP = 100
maxPP = 85
range = 1
skill = Ability.ILLUSION
additional = true
Expand Down
2 changes: 2 additions & 0 deletions app/public/dist/client/changelog/patch-4.10.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Each player now starts on a different map. Portals now makes you travel to new l
- New ability for Mewtwo: Psystrike
- New ability for Treecko: Leaf Blade
- Improve targeting of Spacial Rend (Palkia)
- Changed Lock-on ability (Genesect): no longer inflict Armor Reduction, 100→200% additional true damage
- Buff Zorua and Hisuan Zorua lines: PP 100 → 85
- New ability for Kabuto: Protect
- New ability for Kabutops: Slashing Claw
- Totodile line: PP 90 → 100
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/bg/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@
"FIRE_TRICK": "Раздайте [20,40,80,SP] SPECIAL на целта и я телепортирайте в ъгъл на бойното поле",
"FLAME_CHARGE": "Нахлуйте в задната линия на вражеския отбор, нанасяйки [30,60,120,SP] SPECIAL на всички ударени вражески покемони",
"LEECH_SEED": "POISONNED целта за [3,6,12] секунди и лекувайте HP на потребителя с [20,40,80,SP]",
"LOCK_ON": "Заключете целта. Следващата атака не може да пропусне, нанесете [100,SP]% TRUE и приложете ARMOR_REDUCTION за 3 секунди",
"LOCK_ON": "Заключете целта. Следващата атака не може да пропусне, нанесете [200,SP]% TRUE",
"PSYCH_UP": "Раздайте [10,20,40,SP] SPECIAL на целта, след това ИЗКЛЮЧВАЙТЕ ГЛЪШКАТА им и всички съседни вражески покемони за [2,4,8]",
"RAZOR_WIND": "Раздайте [20,40,80,SP] SPECIAL на целта, след което направете тях и всички съседни вражески покемони ПАРАЛИЗИРАНИ за 7s",
"TWISTING_NETHER": "Раздава [80,SP] SPECIAL на всички врагове в съседство с целта в радиус от 2 клетки, след което ги телепортира на случаен принцип през бойното поле",
Expand Down
4 changes: 2 additions & 2 deletions app/public/dist/client/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,8 @@
"ELECTRO_WEB": "Stehlen Sie [15,30,60,SP] % der ATK_SPEED der benachbarten Feinde und verursacht [15,30,60,SP] SPECIAL ",
"FIRE_TRICK": "Verursacht [20,40,80,SP] SPECIAL und teleportiert das Ziel in eine Ecke der Karte",
"FLAME_CHARGE": "Stürme in die gegnerische Hinterlinie und verursache [30,60,120,SP] SPECIAL",
"LEECH_SEED": "Fügt dem Ziel POISONNED für [3,6,12] Sekunden zu und Heilt die HP des Nutzers um [20,40,80,SP] ",
"LOCK_ON": "Erfassen Sie das Ziel. Der nächste Angriff kann nicht verfehlen, verursacht [100,SP]% TRUE und wendet 3 Sekunden lang ARMOR_REDUCTION an",
"LEECH_SEED": "Fügt dem Ziel POISONNED für [3,6,12] Sekunden zu und Heilt die HP des Nutzers um [20,40,80,SP]",
"LOCK_ON": "Erfassen Sie das Ziel. Der nächste Angriff kann nicht verfehlen, verursacht [200,SP]% TRUE",
"PSYCH_UP": "Verteile [10,20,40,SP] SPECIAL und bringe das Ziel und seine angrenzenden Feinde zum Schweigen",
"RAZOR_WIND": "Fügt dem Ziel [20,40,80,SP] SPECIAL zu und lässt umliegende Feinde paralysieren",
"TWISTING_NETHER": "Verursacht [80,SP] SPEZIAL an allen Gegnern in der Nähe des Ziels in einem Radius von 2 Zellen und teleportiert sie dann zufällig über das Schlachtfeld",
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@
"FIRE_TRICK": "Deal [20,40,80,SP] SPECIAL to the target and teleport them to a corner of the battlefield",
"FLAME_CHARGE": "Dash into the enemy team's backline, dealing [30,60,120,SP] SPECIAL to all enemy Pokémon hit",
"LEECH_SEED": "POISONNED the target for [3,6,12] seconds and heal the user's HP by [20,40,80,SP]",
"LOCK_ON": "Lock on the target. The next attack cannot miss, deal [100,SP]% additional TRUE and apply ARMOR_REDUCTION for 3 seconds",
"LOCK_ON": "Lock on the target. The next attack cannot miss and deal [200,SP]% additional TRUE.",
"PSYCH_UP": "Deal [10,20,40,SP] SPECIAL to the target, then SILENCE them and all adjacent enemy Pokémon for [2,4,8]",
"RAZOR_WIND": "Deal [20,40,80,SP] SPECIAL to the target, then make it and all adjacent enemies PARALYSIS for 7 seconds",
"TWISTING_NETHER": "Deals [80,SP] SPECIAL to all enemies adjacent to the target in a 2-cell radius, then teleport them randomly across the battlefield",
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@
"FIRE_TRICK": "Realiza [20,40,80,SP] de SPECIAL y teletransporta al objetivo a una esquina del mapa",
"FLAME_CHARGE": "Corre hacia la retaguardia enemiga y reparte [30,60,120,SP] de SPECIAL",
"LEECH_SEED": "Deja POISONNED al objetivo durante [3,6,12] segundos y recupera [20,40,80,SP] HP",
"LOCK_ON": "Fija el objetivo. El siguiente ataque no puede fallar, inflige [100,SP]% de TRUE y aplica ARMOR_REDUCTION durante 3 segundos.",
"LOCK_ON": "Fija el objetivo. El siguiente ataque no puede fallar y inflige [200,SP]% de TRUE",
"PSYCH_UP": "Inflige [10,20,40,SP] de SPECIAL y deja SILENCE al objetivo y a sus enemigos adyacentes",
"RAZOR_WIND": "Realiza [20,40,80,SP] de SPECIAL al objetivo y deja a él y a los enemigos a su alrededor PARALYSIS",
"TWISTING_NETHER": "Inflige [80,SP] de SPECIAL a todos los enemigos adyacentes al objetivo en un radio de 2 celdas, y luego los teletransporta aleatoriamente por el campo de batalla",
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@
"FIRE_TRICK": "Inflige [20,40,80,SP] SPECIAL et téléporte la cible dans un coin de la carte",
"FLAME_CHARGE": "Fonce dans la ligne de fond ennemie, infligeant [30,60,120,SP] SPECIAL à tous les ennemis sur le chemin",
"LEECH_SEED": "Inflige POISONNED à la cible pendant [3,6,12] secondes et se soigne de [20,40,80,SP] HP",
"LOCK_ON": "Verrouille la cible. La prochaine attaque ne peut pas manquer, inflige [100,SP]% de TRUE et ARMOR_REDUCTION pendant 3 secondes",
"LOCK_ON": "Verrouille la cible. La prochaine attaque ne peut pas manquer et inflige [200,SP]% de TRUE.",
"PSYCH_UP": "Inflige [10,20,40,SP] SPECIAL et SILENCE la cible et ses ennemis adjacents",
"RAZOR_WIND": "Inflige [20,40,80,SP] SPECIAL à la cible et rend les ennemis environnants PARALYSIS",
"TWISTING_NETHER": "Inflige [80,SP] SPECIAL aux ennemis adjacents à la cible dans un rayon de 2 cases, et les téléporte à un endroit aléatoire sur le plateau",
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/it/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@
"FIRE_TRICK": "Infligge [20,40,80,SP] SPECIAL e teletrasporta il bersaglio in un angolo della mappa",
"FLAME_CHARGE": "Scatta nelle retrovie nemiche, infliggendo [30,60,120,SP] SPECIAL",
"LEECH_SEED": "POISONNED il bersaglio per [3,6,12] secondi, curando [20,40,80,SP] HP",
"LOCK_ON": "Blocca il bersaglio. Il prossimo attacco non può fallire, infligge [100,SP]% TRUE e applica ARMOR_REDUCTION per 3 secondi",
"LOCK_ON": "Blocca il bersaglio. Il prossimo attacco non può fallire e infligge [200,SP]% TRUE",
"PSYCH_UP": "Infliggi [10,20,40,SP] SPECIAL e SILENCE il bersaglio e i suoi nemici adiacenti",
"RAZOR_WIND": "Infligge [20,40,80,SP] SPECIAL al bersaglio e crea una PARALYSIS dei nemici circostanti",
"TWISTING_NETHER": "Infligge [80,SP] SPECIAL a tutti i nemici adiacenti al bersaglio in un raggio di 2 celle, poi li teletrasporta a caso sul campo di battaglia.",
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@
"FIRE_TRICK": "[20,40,80,SP] SPECIALを達成し、ターゲットをマップの隅にテレポートします",
"FLAME_CHARGE": "敵後衛に突進し[30,60,120,SP]SPECIALを与える",
"LEECH_SEED": "[3,6,12]秒間ターゲットに毒を与え、HPを[20,40,80,SP]回復します",
"LOCK_ON": "ターゲットをロックオンします。 次の攻撃は失敗せず、[100,SP]% TRUE を与え、3 秒間 ARMOR_REDUCTION を適用します",
"LOCK_ON": "対象をロックする。次の攻撃は失敗せず、さらに[200,SP]%のTRUEを与える。",
"PSYCH_UP": "[10,20,40,SP] SPECIALを与え、ターゲットとその隣接する敵を沈黙させます",
"RAZOR_WIND": "対象に[20,40,80,SP]SPECIALを与え、周囲の敵を麻痺させる",
"TWISTING_NETHER": "ターゲットに隣接する半径2セルの敵全てに[80,SP]のSPECIALを与え、戦場全体にランダムにテレポートさせる。",
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/nl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@
"FIRE_TRICK": "Breng [20,40,80,SP] SPECIAL toe aan het doelwit en teleporteer hen naar een hoek van het slagveld",
"FLAME_CHARGE": "Ren naar de achterkant van het vijandelijke team en breng [30,60,120,SP] SPECIAL toe aan alle geraakte vijandelijke Pokémon",
"LEECH_SEED": "Pas de POISONNED status toe op het doelwit voor [3,6,12] seconden, en herstel de gebruiker's HP met [20,40,80,SP]",
"LOCK_ON": "Vergrendel het doel. De volgende aanval mag niet missen, deel [100,SP]% TRUE en pas ARMOR_REDUCTION gedurende 3 seconden toe",
"LOCK_ON": "Vergrendel het doel. De volgende aanval mag niet missen en deel [200,SP]% TRUE",
"PSYCH_UP": "Breng [10,20,40,SP] SPECIAL toe aan het doelwit en past de SILENCE status toe aan hen en aangrenzende vijandelijke Pokémon",
"RAZOR_WIND": "Breng [20,40,80,SP] SPECIAL toe aan het doelwit en pas de PARALYSIS status toe hen en aangrenzende vijandelijke Pokémon",
"TWISTING_NETHER": "Breng [80,SP] SPECIAL aan alle vijanden naast het doelwit in een straal van 2 cellen en teleporteert ze vervolgens willekeurig over het slagveld.",
Expand Down
2 changes: 1 addition & 1 deletion app/public/dist/client/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@
"FIRE_TRICK": "Oferece [20,40,80,SP] SPECIAL e teletransporta o alvo para um canto do mapa",
"FLAME_CHARGE": "Corra para a retaguarda inimiga, causando [30,60,120,SP] SPECIAL",
"LEECH_SEED": "POISONNED o alvo por [3,6,12] segundos, curando [20,40,80,SP] HP",
"LOCK_ON": "Bloqueie o alvo. O próximo ataque não pode errar, aplique [100,SP]% TRUE e aplique ARMOR_REDUCTION por 3 segundos",
"LOCK_ON": "Bloqueie o alvo. O próximo ataque não pode errar e aplique [200,SP]% TRUE.",
"PSYCH_UP": "Distribua [10,20,40,SP] SPECIAL e SILENCE o alvo e seus inimigos adjacentes",
"RAZOR_WIND": "Inflige [20,40,80,SP] SPECIAL ao alvo e causa PARALYSIS nos inimigos ao redor",
"TWISTING_NETHER": "Inflige [80,SP] SPECIAL a todos os inimigos adjacentes ao alvo num raio de 2 células, depois teletransporta-os aleatoriamente pelo campo de batalha",
Expand Down

0 comments on commit 2f9116a

Please sign in to comment.