Implement Charge and more abilities (#163)
* Implement Rivalry * Implement Quick Feet, Liquid Voice, and Normalize * Forgot paralysis is half speed instead of a quarter * Remove log statements * Fix minor edge case in rivalry for gendered vs genderless * Add wind abilities and charge * Implement Charge and more abilities * Add i18n support and Beedrill fury cutter * Fix merge conflict in taunt * More English strings removed
This commit is contained in:
1 parent
db92663daa
commit
cf2bd4d3da
6 files changed
+74
-15
No files matched your search
@@ -1183,8 +1183,13 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
if (cancelled.value)
|
||||
result = HitResult.NO_EFFECT;
|
||||
else {
|
||||
if (source.findTag(t => t instanceof TypeBoostTag && (t as TypeBoostTag).boostedType === type))
|
||||
power.value *= 1.5;
|
||||
let typeBoost = source.findTag(t => t instanceof TypeBoostTag && (t as TypeBoostTag).boostedType === type) as TypeBoostTag;
|
||||
if (typeBoost) {
|
||||
power.value *= typeBoost.boostValue;
|
||||
if (typeBoost.oneUse) {
|
||||
this.removeTag(typeBoost.tagType);
|
||||
}
|
||||
}
|
||||
const arenaAttackTypeMultiplier = this.scene.arena.getAttackTypeMultiplier(type, source.isGrounded());
|
||||
if (this.scene.arena.getTerrainType() === TerrainType.GRASSY && this.isGrounded() && type === Type.GROUND && move.moveTarget === MoveTarget.ALL_NEAR_OTHERS)
|
||||
power.value /= 2;
|
||||
|
||||
Reference in new issue
Block a user