Sync data

This commit is contained in:
Guangcong Luo
2014-12-10 04:56:36 -05:00
parent 7f01401135
commit 8e8f58af73
7 changed files with 900 additions and 805 deletions

View File

@@ -527,6 +527,20 @@ exports.BattleAbilities = {
onStart: function (source) {
this.setWeather('deltastream');
},
onEnd: function (pokemon) {
if (this.weatherData.source !== pokemon) return;
for (var i = 0; i < this.sides.length; i++) {
for (var j = 0; j < this.sides[i].active.length; j++) {
var target = this.sides[i].active[j];
if (target === pokemon) continue;
if (target && target.hp && target.ability === 'deltastream' && target.ignore['Ability'] !== true) {
this.weatherData.source = target;
return;
}
}
}
this.clearWeather();
},
id: "deltastream",
name: "Delta Stream",
rating: 5,
@@ -538,6 +552,20 @@ exports.BattleAbilities = {
onStart: function (source) {
this.setWeather('desolateland');
},
onEnd: function (pokemon) {
if (this.weatherData.source !== pokemon) return;
for (var i = 0; i < this.sides.length; i++) {
for (var j = 0; j < this.sides[i].active.length; j++) {
var target = this.sides[i].active[j];
if (target === pokemon) continue;
if (target && target.hp && target.ability === 'desolateland' && target.ignore['Ability'] !== true) {
this.weatherData.source = target;
return;
}
}
}
this.clearWeather();
},
id: "desolateland",
name: "Desolate Land",
rating: 5,
@@ -1464,9 +1492,9 @@ exports.BattleAbilities = {
"magician": {
desc: "If this Pokemon is not holding an item, it steals the held item of a target it hits with a move.",
shortDesc: "This Pokemon steals the held item of a target it hits with a move.",
onHit: function (target, source, move) {
// We need to hard check if the ability is Magician since the event will be run both ways.
if (target && target !== source && source.ability === 'magician' && move && move.category !== 'Status') {
onSourceHit: function (target, source, move) {
if (!move || !target) return;
if (target !== source && move.category !== 'Status') {
if (source.item) return;
var yourItem = target.takeItem(source);
if (!yourItem) return;
@@ -2005,6 +2033,20 @@ exports.BattleAbilities = {
onStart: function (source) {
this.setWeather('primordialsea');
},
onEnd: function (pokemon) {
if (this.weatherData.source !== pokemon) return;
for (var i = 0; i < this.sides.length; i++) {
for (var j = 0; j < this.sides[i].active.length; j++) {
var target = this.sides[i].active[j];
if (target === pokemon) continue;
if (target && target.hp && target.ability === 'primordialsea' && target.ignore['Ability'] !== true) {
this.weatherData.source = target;
return;
}
}
}
this.clearWeather();
},
id: "primordialsea",
name: "Primordial Sea",
rating: 5,
@@ -2271,6 +2313,7 @@ exports.BattleAbilities = {
"scrappy": {
desc: "This Pokemon has the ability to hit Ghost-type Pokemon with Normal-type and Fighting-type moves. Effectiveness of these moves takes into account the Ghost-type Pokemon's other weaknesses and resistances.",
shortDesc: "This Pokemon can hit Ghost-types with Normal- and Fighting-type moves.",
onModifyMovePriority: -5,
onModifyMove: function (move) {
if (move.type in {'Fighting':1, 'Normal':1}) {
move.affectedByImmunities = false;

View File

@@ -51,6 +51,7 @@ exports.BattleAliases = {
"megamewtwo": "Mewtwo-Mega-Y",
"megamewtwox": "Mewtwo-Mega-X",
"megamewtwoy": "Mewtwo-Mega-Y",
"megaobama": "Abomasnow-Mega",
"megapidgeot": "Pidgeot-Mega",
"megapinsir": "Pinsir-Mega",
"megarayquaza": "Rayquaza-Mega",
@@ -121,6 +122,7 @@ exports.BattleAliases = {
"deos": "Deoxys-Speed",
"giratinao": "Giratina-Origin",
"gourgeisthuge": "Gourgeist-Super",
"hoopau": "Hoopa-Unbound",
"keldeor": "Keldeo-Resolute",
"keldeoresolution": "Keldeo-Resolute",
"kyuremb": "Kyurem-Black",
@@ -185,13 +187,15 @@ exports.BattleAliases = {
"flightgem": "Flying Gem",
"goggles": "Safety Goggles",
"lefties": "Leftovers",
"leppa": "Leppa Berry",
"lo": "Life Orb",
"lum": "Lum Berry",
"occa": "Occa Berry",
"salac": "Salac Berry",
"scarf": "Choice Scarf",
"specs": "Choice Specs",
"sash": "Focus Sash",
"scarf": "Choice Scarf",
"sitrus": "Sitrus Berry",
"specs": "Choice Specs",
"yache": "Yache Berry",
// gen 1-2 berries
@@ -227,6 +231,7 @@ exports.BattleAliases = {
"landot": "Landorus-Therian",
"luke": "Lucario",
"mence": "Salamence",
"obama": "Abomasnow",
"ogre": "Kyogre",
"p2": "Porygon2",
"pory2": "Porygon2",
@@ -242,6 +247,7 @@ exports.BattleAliases = {
// moves
"bpass": "Baton Pass",
"bp": "Baton Pass",
"cc": "Close Combat",
"cm": "Calm Mind",
"dd": "Dragon Dance",
@@ -249,6 +255,23 @@ exports.BattleAliases = {
"espeed": "ExtremeSpeed",
"faintattack": "Feint Attack",
"glowpunch": "Power-up Punch",
"hp": "Hidden Power",
"hpbug": "Hidden Power Bug",
"hpdark": "Hidden Power Dark",
"hpdragon": "Hidden Power Dragon",
"hpelectric": "Hidden Power electric",
"hpfighting": "Hidden Power Fighting",
"hpfire": "Hidden Power Fire",
"hpflying": "Hidden Power Flying",
"hpghost": "Hidden Power Ghost",
"hpgrass": "Hidden Power Grass",
"hpground": "Hidden Power Ground",
"hpice": "Hidden Power Ice",
"hppoison": "Hidden Power Poison",
"hppsychic": "Hidden Power Psychic",
"hprock": "Hidden Power Rock",
"hpsteel": "Hidden Power Steel",
"hpwater": "Hidden Power Water",
"hjk": "High Jump Kick",
"hijumpkick": "High Jump Kick",
"np": "Nasty Plot",

View File

@@ -120,7 +120,7 @@ exports.BattleFormatsData = {
eventPokemon: [
{"generation":3,"level":30,"moves":["batonpass","sludgebomb","twineedle","swordsdance"]}
],
tier: "PU"
tier: "UU"
},
beedrillmega: {
randomBattleMoves: ["toxicspikes","xscissor","swordsdance","uturn","endeavor","poisonjab","drillrun","knockoff"],
@@ -146,7 +146,7 @@ exports.BattleFormatsData = {
eventPokemon: [
{"generation":5,"level":61,"gender":"M","nature":"Naughty","isHidden":false,"abilities":["keeneye"],"moves":["whirlwind","wingattack","skyattack","mirrormove"],"pokeball":"cherishball"}
],
tier: "PU"
tier: "RU"
},
pidgeotmega: {
randomBattleMoves: ["roost","heatwave","uturn","hurricane","defog"],
@@ -258,20 +258,29 @@ exports.BattleFormatsData = {
],
tier: "NFE"
},
pikachucosplay: {
gen: 6,
tier: "PU"
},
pikachurockstar: {
gen: 6
gen: 6,
tier: "PU"
},
pikachubelle: {
gen: 6
gen: 6,
tier: "PU"
},
pikachupopstar: {
gen: 6
gen: 6,
tier: "PU"
},
pikachuphd: {
gen: 6
gen: 6,
tier: "PU"
},
pikachulibre: {
gen: 6
gen: 6,
tier: "PU"
},
raichu: {
randomBattleMoves: ["nastyplot","encore","thunderbolt","grassknot","hiddenpowerice","focusblast","substitute"],
@@ -569,8 +578,7 @@ exports.BattleFormatsData = {
alakazammega: {
randomBattleMoves: ["calmmind","psyshock","focusblast","shadowball","encore","substitute"],
randomDoubleBattleMoves: ["protect","psychic","psyshock","focusblast","shadowball","encore","substitute","energyball"],
requiredItem: "Alakazite",
tier: "BL"
requiredItem: "Alakazite"
},
machop: {
randomBattleMoves: ["dynamicpunch","payback","bulkup","icepunch","rockslide","bulletpunch","knockoff"],
@@ -1201,7 +1209,7 @@ exports.BattleFormatsData = {
tier: "OU"
},
gyaradosmega: {
randomBattleMoves: ["dragondance","waterfall","earthquake","stoneedge","substitute","icefang","taunt"],
randomBattleMoves: ["dragondance","waterfall","earthquake","stoneedge","substitute","icefang","crunch"],
randomDoubleBattleMoves: ["dragondance","waterfall","earthquake","bounce","taunt","protect","thunderwave","stoneedge","substitute","icefang"],
requiredItem: "Gyaradosite"
},
@@ -1282,7 +1290,7 @@ exports.BattleFormatsData = {
{"generation":5,"level":10,"gender":"M","isHidden":true,"moves":["tailwhip","tackle","helpinghand","sandattack"]},
{"generation":6,"level":10,"isHidden":false,"moves":["celebrate","tailwhip","sandattack","razorleaf"],"pokeball":"cherishball"}
],
tier: "NU"
tier: "PU"
},
glaceon: {
randomBattleMoves: ["icebeam","hiddenpowerground","shadowball","wish","protect","healbell","batonpass"],
@@ -1576,7 +1584,7 @@ exports.BattleFormatsData = {
eventPokemon: [
{"generation":5,"level":10,"gender":"M","isHidden":true,"moves":["extremespeed","aurasphere","airslash","present"]}
],
tier: "BL"
tier: "UU"
},
natu: {
randomBattleMoves: ["thunderwave","roost","toxic","reflect","lightscreen","uturn","wish","psychic","nightshade"],
@@ -1735,7 +1743,7 @@ exports.BattleFormatsData = {
{"generation":6,"level":10,"gender":"M","isHidden":false,"moves":["counter"],"pokeball":"cherishball"},
{"generation":6,"level":15,"gender":"M","isHidden":false,"moves":["counter","mirrorcoat"],"pokeball":"cherishball"}
],
tier: "RU"
tier: "NU"
},
girafarig: {
randomBattleMoves: ["psychic","thunderbolt","calmmind","batonpass","agility","hypervoice"],
@@ -1822,7 +1830,7 @@ exports.BattleFormatsData = {
tier: "LC Uber"
},
weavile: {
randomBattleMoves: ["iceshard","icepunch","knockoff","pursuit","swordsdance","lowkick"],
randomBattleMoves: ["iceshard","iciclecrash","knockoff","pursuit","swordsdance","lowkick"],
randomDoubleBattleMoves: ["iceshard","icepunch","knockoff","fakeout","swordsdance","lowkick","taunt","protect","feint"],
eventPokemon: [
{"generation":4,"level":30,"gender":"M","nature":"Jolly","moves":["fakeout","iceshard","nightslash","brickbreak"],"pokeball":"cherishball"}
@@ -1930,7 +1938,7 @@ exports.BattleFormatsData = {
houndoom: {
randomBattleMoves: ["nastyplot","darkpulse","suckerpunch","fireblast","hiddenpowerfighting"],
randomDoubleBattleMoves: ["nastyplot","darkpulse","suckerpunch","heatwave","hiddenpowerfighting","protect"],
tier: "UU"
tier: "RU"
},
houndoommega: {
randomBattleMoves: ["nastyplot","darkpulse","suckerpunch","fireblast","hiddenpowerfighting"],
@@ -2079,7 +2087,7 @@ exports.BattleFormatsData = {
eventPokemon: [
{"generation":5,"level":50,"isHidden":false,"moves":["leafstorm","dragonpulse","focusblast","rockslide"],"pokeball":"cherishball"}
],
tier: "NU"
tier: "RU"
},
sceptilemega: {
randomBattleMoves: ["substitute","gigadrain","dragonpulse","focusblast","swordsdance","outrage","leafblade","earthquake"],
@@ -2412,7 +2420,7 @@ exports.BattleFormatsData = {
{"generation":3,"level":33,"abilities":["keeneye"],"moves":["helpinghand","shadowball","feintattack","recover"]},
{"generation":5,"level":50,"gender":"M","isHidden":true,"moves":["foulplay","octazooka","tickle","trick"],"pokeball":"cherishball"}
],
tier: "UU"
tier: "OU"
},
sableyemega: {
randomBattleMoves: ["recover","willowisp","darkpulse","calmmind","shadowball"],
@@ -2427,7 +2435,7 @@ exports.BattleFormatsData = {
{"generation":3,"level":22,"moves":["sing","falseswipe","vicegrip","irondefense"]},
{"generation":6,"level":50,"isHidden":false,"abilities":["intimidate"],"moves":["ironhead","playrough","firefang","suckerpunch"],"pokeball":"cherishball"}
],
tier: "OU"
tier: "UU"
},
mawilemega: {
randomBattleMoves: ["swordsdance","ironhead","firefang","substitute","playrough","suckerpunch","knockoff","focuspunch"],
@@ -2671,7 +2679,7 @@ exports.BattleFormatsData = {
{"generation":3,"level":36,"moves":["healbell","dragonbreath","solarbeam","aerialace"]},
{"generation":5,"level":35,"gender":"M","isHidden":true,"moves":["takedown","naturalgift","dragonbreath","falseswipe"]}
],
tier: "PU"
tier: "UU"
},
altariamega: {
randomBattleMoves: ["dragondance","return","outrage","dragonclaw","earthquake","roost","dracometeor","fireblast"],
@@ -2966,12 +2974,13 @@ exports.BattleFormatsData = {
{"generation":4,"level":50,"gender":"M","nature":"Naughty","moves":["hydropump","stoneedge","fireblast","dragonclaw"],"pokeball":"cherishball"},
{"generation":5,"level":50,"isHidden":false,"moves":["dragondance","dragonclaw","outrage","aerialace"],"pokeball":"cherishball"}
],
tier: "BL"
tier: "OU"
},
salamencemega: {
randomBattleMoves: ["doubleedge","fireblast","earthquake","dracometeor","roost","dragondance","dragonclaw"],
randomDoubleBattleMoves: ["doubleedge","fireblast","earthquake","dracometeor","protect","dragondance","dragonclaw"],
requiredItem: "Salamencite"
requiredItem: "Salamencite",
tier: "Uber"
},
beldum: {
randomBattleMoves: ["ironhead","zenheadbutt","headbutt","irondefense"],
@@ -2999,7 +3008,7 @@ exports.BattleFormatsData = {
{"generation":5,"level":45,"isHidden":true,"moves":["psychic","meteormash","hammerarm","doubleedge"]},
{"generation":5,"level":58,"nature":"Serious","isHidden":false,"moves":["earthquake","hyperbeam","psychic","meteormash"],"pokeball":"cherishball"}
],
tier: "UU"
tier: "OU"
},
metagrossmega: {
randomBattleMoves: ["meteormash","earthquake","agility","zenheadbutt","thunderpunch","icepunch"],
@@ -3265,7 +3274,7 @@ exports.BattleFormatsData = {
staraptor: {
randomBattleMoves: ["bravebird","closecombat","uturn","quickattack","roost","doubleedge"],
randomDoubleBattleMoves: ["bravebird","closecombat","uturn","quickattack","doubleedge","tailwind","protect"],
tier: "BL"
tier: "UU"
},
bidoof: {
randomBattleMoves: ["return","aquatail","curse","quickattack","stealthrock","superfang"],
@@ -3406,7 +3415,7 @@ exports.BattleFormatsData = {
lopunny: {
randomBattleMoves: ["return","switcheroo","jumpkick","firepunch","icepunch","healingwish"],
randomDoubleBattleMoves: ["return","switcheroo","jumpkick","firepunch","icepunch","fakeout","protect","encore"],
tier: "PU"
tier: "RU"
},
lopunnymega: {
randomBattleMoves: ["return","highjumpkick","poweruppunch","fakeout","icepunch"],
@@ -4121,7 +4130,7 @@ exports.BattleFormatsData = {
scolipede: {
randomBattleMoves: ["spikes","toxicspikes","megahorn","rockslide","earthquake","swordsdance","batonpass","aquatail","superpower"],
randomDoubleBattleMoves: ["substitute","protect","megahorn","rockslide","poisonjab","swordsdance","batonpass","aquatail","superpower"],
tier: "UU"
tier: "BL"
},
cottonee: {
randomBattleMoves: ["encore","taunt","substitute","leechseed","toxic","stunspore"],
@@ -4616,7 +4625,7 @@ exports.BattleFormatsData = {
{"generation":5,"level":35,"isHidden":false,"moves":["stringshot","leechlife","gust","firespin"]},
{"generation":5,"level":77,"gender":"M","nature":"Calm","isHidden":false,"moves":["bugbuzz","overheat","hyperbeam","quiverdance"],"pokeball":"cherishball"}
],
tier: "BL"
tier: "UU"
},
cobalion: {
randomBattleMoves: ["closecombat","ironhead","swordsdance","substitute","stoneedge","voltswitch","hiddenpowerice","thunderwave","stealthrock"],
@@ -4673,7 +4682,6 @@ exports.BattleFormatsData = {
eventPokemon: [
{"generation":5,"level":100,"moves":["blueflare","fusionflare","mist","dracometeor"],"pokeball":"cherishball"}
],
unobtainableShiny: true,
tier: "Uber"
},
zekrom: {
@@ -4682,7 +4690,6 @@ exports.BattleFormatsData = {
eventPokemon: [
{"generation":5,"level":100,"moves":["boltstrike","fusionbolt","haze","outrage"],"pokeball":"cherishball"}
],
unobtainableShiny: true,
tier: "Uber"
},
landorus: {
@@ -4804,7 +4811,7 @@ exports.BattleFormatsData = {
tier: "NFE"
},
greninja: {
randomBattleMoves: ["hydropump","uturn","surf","icebeam","spikes","taunt","darkpulse","toxicspikes","hiddenpowerfire"],
randomBattleMoves: ["hydropump","uturn","surf","icebeam","spikes","taunt","darkpulse","toxicspikes","hiddenpowerfire","gunkshot"],
randomDoubleBattleMoves: ["hydropump","uturn","surf","icebeam","matblock","taunt","darkpulse","protect","hiddenpowerfire"],
tier: "OU"
},
@@ -4889,7 +4896,7 @@ exports.BattleFormatsData = {
tier: "LC"
},
pangoro: {
randomBattleMoves: ["partingshot","hammerarm","crunch","circlethrow","stoneedge","earthquake","poisonjab"],
randomBattleMoves: ["partingshot","hammerarm","knockoff","circlethrow","stoneedge","earthquake","poisonjab"],
randomDoubleBattleMoves: ["partingshot","hammerarm","crunch","circlethrow","stoneedge","earthquake","poisonjab","protect"],
tier: "NU"
},
@@ -4903,7 +4910,7 @@ exports.BattleFormatsData = {
tier: "LC"
},
meowstic: {
randomBattleMoves: ["fakeout","toxic","yawn","thunderwave","psyshock","trick","psychic","reflect","lightscreen"],
randomBattleMoves: ["fakeout","toxic","yawn","thunderwave","psyshock","trick","psychic","reflect","lightscreen","healbell"],
randomDoubleBattleMoves: ["fakeout","thunderwave","psyshock","psychic","reflect","lightscreen","safeguard","protect"],
tier: "PU"
},
@@ -4944,7 +4951,7 @@ exports.BattleFormatsData = {
slurpuff: {
randomBattleMoves: ["calmmind","dazzlinggleam","surf","psychic","flamethrower","thunderbolt"],
randomDoubleBattleMoves: ["calmmind","dazzlinggleam","surf","psychic","flamethrower","thunderbolt","protect"],
tier: "NU"
tier: "BL3"
},
inkay: {
randomBattleMoves: ["topsyturvy","switcheroo","superpower","psychocut","flamethrower","rockslide","trickroom"],
@@ -4954,7 +4961,7 @@ exports.BattleFormatsData = {
tier: "LC"
},
malamar: {
randomBattleMoves: ["switcheroo","superpower","psychocut","rockslide","trickroom","nightslash"],
randomBattleMoves: ["switcheroo","superpower","psychocut","rockslide","trickroom","knockoff"],
randomDoubleBattleMoves: ["switcheroo","superpower","psychocut","rockslide","trickroom","nightslash","protect"],
tier: "NU"
},
@@ -4974,7 +4981,7 @@ exports.BattleFormatsData = {
dragalge: {
randomBattleMoves: ["scald","sludgebomb","thunderbolt","toxicspikes","hydropump","focusblast","dracometeor","dragontail","substitute"],
randomDoubleBattleMoves: ["scald","sludgebomb","thunderbolt","protect","hydropump","focusblast","dracometeor","dragonpulse","substitute"],
tier: "NU"
tier: "RU"
},
clauncher: {
randomBattleMoves: ["waterpulse","flashcannon","uturn","darkpulse","crabhammer","aquajet","sludgebomb"],
@@ -5000,7 +5007,7 @@ exports.BattleFormatsData = {
tier: "LC"
},
tyrantrum: {
randomBattleMoves: ["stealthrock","dragondance","stoneedge","dragonclaw","earthquake","icefang","firefang"],
randomBattleMoves: ["stealthrock","dragondance","stoneedge","dragonclaw","earthquake","firefang","outrage"],
randomDoubleBattleMoves: ["rockslide","dragondance","stoneedge","dragonclaw","earthquake","icefang","firefang","protect"],
unreleasedHidden: true,
tier: "RU"
@@ -5025,7 +5032,7 @@ exports.BattleFormatsData = {
tier: "OU"
},
hawlucha: {
randomBattleMoves: ["swordsdance","highjumpkick","uturn","stoneedge","roost","batonpass"],
randomBattleMoves: ["swordsdance","highjumpkick","uturn","stoneedge","roost","batonpass","thunderpunch"],
randomDoubleBattleMoves: ["swordsdance","highjumpkick","uturn","stoneedge","skydrop","encore","protect"],
tier: "BL"
},
@@ -5055,7 +5062,7 @@ exports.BattleFormatsData = {
klefki: {
randomBattleMoves: ["reflect","lightscreen","spikes","torment","substitute","thunderwave","drainingkiss","flashcannon","dazzlinggleam"],
randomDoubleBattleMoves: ["reflect","lightscreen","safeguard","playrough","substitute","thunderwave","protect","flashcannon","dazzlinggleam"],
tier: "BL"
tier: "UU"
},
phantump: {
randomBattleMoves: ["hornleech","leechseed","phantomforce","substitute","willowisp","curse","bulldoze","rockslide","poisonjab"],
@@ -5161,10 +5168,14 @@ exports.BattleFormatsData = {
},
hoopa: {
isUnreleased: true,
randomBattleMoves: ["calmmind","psychic","shadowball","focusblast","thunderwave","energyball","thunderbolt"],
randomDoubleBattleMoves: ["hyperspacehole","shadowball","focusblast","protect","thunderwave","energyball","thunderbolt"],
tier: "Unreleased"
},
hoopaunbound: {
isUnreleased: true,
randomBattleMoves: ["calmmind","psychic","shadowball","focusblast","thunderwave","energyball","thunderbolt"],
randomDoubleBattleMoves: ["hyperspacehole","shadowball","focusblast","protect","thunderwave","energyball","thunderbolt"],
tier: "Unreleased"
},
volcanion: {

View File

@@ -4152,7 +4152,6 @@ exports.BattleItems = {
"souldew": {
id: "souldew",
name: "Soul Dew",
isUnreleased: true,
spritenum: 459,
fling: {
basePower: 30

File diff suppressed because one or more lines are too long

View File

@@ -2515,6 +2515,7 @@ exports.BattleMovedex = {
desc: "Deals damage to all adjacent foes with a 50% chance to raise the user's Defense by 1 stage.",
shortDesc: "Hits all adjacent foes. 50% chance to boost Def by 1.",
id: "diamondstorm",
isViable: true,
name: "Diamond Storm",
pp: 5,
priority: 0,
@@ -2899,6 +2900,7 @@ exports.BattleMovedex = {
desc: "Deals damage to one adjacent or non-adjacent target and lowers the user's Defense and Special Defense by 1 stage. Makes contact.",
shortDesc: "Lowers the user's Defense and Sp. Def by 1.",
id: "dragonascent",
isViable: true,
name: "Dragon Ascent",
pp: 5,
priority: 0,
@@ -4955,7 +4957,7 @@ exports.BattleMovedex = {
effect: {
onStart: function (pokemon) {
this.add('-endability', pokemon);
this.runEvent('EndAbility', pokemon, pokemon.ability);
this.singleEvent('End', this.getAbility(pokemon.ability), pokemon.abilityData, pokemon, pokemon, 'gastroacid');
},
onModifyPokemonPriority: 2,
onModifyPokemon: function (pokemon) {
@@ -5835,7 +5837,7 @@ exports.BattleMovedex = {
priority: 0,
isSnatchable: true,
onTryHit: function (pokemon, target, move) {
if (pokemon.side.pokemonLeft <= 1) {
if (!this.canSwitch(pokemon.side)) {
delete move.selfdestruct;
return false;
}
@@ -5844,19 +5846,29 @@ exports.BattleMovedex = {
sideCondition: 'healingwish',
effect: {
duration: 2,
onStart: function (side) {
onStart: function (side, source) {
this.debug('Healing Wish started on ' + side.name);
this.effectData.positions = [];
for (var i = 0; i < side.active.length; i++) {
this.effectData.positions[i] = false;
}
this.effectData.positions[source.position] = true;
},
onRestart: function (side, source) {
this.effectData.positions[source.position] = true;
},
onSwitchInPriority: 1,
onSwitchIn: function (target) {
if (target.position !== this.effectData.sourcePosition) {
if (!this.effectData.positions[target.position]) {
return;
}
if (!target.fainted) {
var source = this.effectData.source;
var damage = target.heal(target.maxhp);
target.heal(target.maxhp);
target.setStatus('');
this.add('-heal', target, target.getHealth, '[from] move: Healing Wish');
this.effectData.positions[target.position] = false;
}
if (!this.effectData.positions.any(true)) {
target.side.removeSideCondition('healingwish');
}
}
@@ -6547,7 +6559,7 @@ exports.BattleMovedex = {
num: 621,
accuracy: true,
basePower: 100,
category: "Special",
category: "Physical",
desc: "Deals damage to one adjacent target and breaks through Protect and Detect for this turn, allowing other Pokemon to attack the target normally. Lowers the user's Defense by 1 stage. Makes contact.",
shortDesc: "Breaks protect and lowers user's Def. by 1.",
id: "hyperspacefury",
@@ -7649,7 +7661,7 @@ exports.BattleMovedex = {
priority: 0,
isSnatchable: true,
onTryHit: function (pokemon, target, move) {
if (pokemon.side.pokemonLeft <= 1) {
if (!this.canSwitch(pokemon.side)) {
delete move.selfdestruct;
return false;
}
@@ -7658,8 +7670,16 @@ exports.BattleMovedex = {
sideCondition: 'lunardance',
effect: {
duration: 2,
onStart: function (side) {
onStart: function (side, source) {
this.debug('Lunar Dance started on ' + side.name);
this.effectData.positions = [];
for (var i = 0; i < side.active.length; i++) {
this.effectData.positions[i] = false;
}
this.effectData.positions[source.position] = true;
},
onRestart: function (side, source) {
this.effectData.positions[source.position] = true;
},
onSwitchInPriority: 1,
onSwitchIn: function (target) {
@@ -7667,13 +7687,15 @@ exports.BattleMovedex = {
return;
}
if (!target.fainted) {
var source = this.effectData.source;
var damage = target.heal(target.maxhp);
target.heal(target.maxhp);
target.setStatus('');
for (var m in target.moveset) {
target.moveset[m].pp = target.moveset[m].maxpp;
}
this.add('-heal', target, target.getHealth, '[from] move: Lunar Dance');
this.effectData.positions[target.position] = false;
}
if (!this.effectData.positions.any(true)) {
target.side.removeSideCondition('lunardance');
}
}
@@ -9177,6 +9199,7 @@ exports.BattleMovedex = {
desc: "Deals damage to all adjacent foes.",
shortDesc: "Deals damage to all adjacent foes.",
id: "originpulse",
isViable: true,
name: "Origin Pulse",
pp: 10,
priority: 0,
@@ -9896,6 +9919,7 @@ exports.BattleMovedex = {
desc: "Deals damage to all adjacent foes.",
shortDesc: "Deals damage to all adjacent foes.",
id: "precipiceblades",
isViable: true,
name: "Precipice Blades",
pp: 10,
priority: 0,
@@ -11949,26 +11973,19 @@ exports.BattleMovedex = {
}
},
onHit: function (target, source, move) {
var targetAbility = target.ability;
var sourceAbility = source.ability;
if (!target.setAbility(sourceAbility, source, move, true) || !source.setAbility(targetAbility, source, move, true)) {
target.ability = targetAbility;
source.ability = sourceAbility;
return false;
}
this.add('-activate', source, 'move: Skill Swap', this.getAbility(targetAbility), this.getAbility(sourceAbility), '[of] ' + target);
// Change the source of an ORAS weather (will this really happen in-game?)
var weather = this.getWeather();
if (weather.id in {desolateland:1, primordialsea:1, deltastream:1}) {
var weatherSource = this.weatherData.source;
if (weatherSource === source) {
this.weatherData.source = target;
} else if (weatherSource === target) {
this.weatherData.source = source;
}
this.debug(this.weatherData.source);
var targetAbility = this.getAbility(target.ability);
var sourceAbility = this.getAbility(source.ability);
this.add('-activate', source, 'move: Skill Swap', targetAbility, sourceAbility, '[of] ' + target);
if (targetAbility.id !== sourceAbility.id) {
source.battle.singleEvent('End', sourceAbility, source.abilityData, source);
target.battle.singleEvent('End', targetAbility, target.abilityData, target);
source.ability = targetAbility.id;
target.ability = sourceAbility.id;
source.abilityData = {id: source.ability.id, target: source};
target.abilityData = {id: target.ability.id, target: target};
}
source.battle.singleEvent('Start', targetAbility, source.abilityData, source);
target.battle.singleEvent('Start', sourceAbility, target.abilityData, target);
},
secondary: false,
target: "normal",

View File

@@ -29,7 +29,8 @@ spearow:{num:21,species:"Spearow",types:["Normal","Flying"],baseStats:{hp:40,atk
fearow:{num:22,species:"Fearow",types:["Normal","Flying"],baseStats:{hp:65,atk:90,def:65,spa:61,spd:61,spe:100},abilities:{0:"Keen Eye",H:"Sniper"},heightm:1.2,weightkg:38,color:"Brown",prevo:"spearow",evoLevel:20,eggGroups:["Flying"]},
ekans:{num:23,species:"Ekans",types:["Poison"],baseStats:{hp:35,atk:60,def:44,spa:40,spd:54,spe:55},abilities:{0:"Intimidate",1:"Shed Skin",H:"Unnerve"},heightm:2,weightkg:6.9,color:"Purple",evos:["arbok"],eggGroups:["Field","Dragon"]},
arbok:{num:24,species:"Arbok",types:["Poison"],baseStats:{hp:60,atk:85,def:69,spa:65,spd:79,spe:80},abilities:{0:"Intimidate",1:"Shed Skin",H:"Unnerve"},heightm:3.5,weightkg:65,color:"Purple",prevo:"ekans",evoLevel:22,eggGroups:["Field","Dragon"]},
pikachu:{num:25,species:"Pikachu",types:["Electric"],baseStats:{hp:35,atk:55,def:40,spa:50,spd:50,spe:90},abilities:{0:"Static",H:"Lightning Rod"},heightm:0.4,weightkg:6,color:"Yellow",prevo:"pichu",evos:["raichu"],evoLevel:1,eggGroups:["Field","Fairy"],otherFormes:["pikachurockstar","pikachubelle","pikachupopstar","pikachuphd","pikachulibre"]},
pikachu:{num:25,species:"Pikachu",types:["Electric"],baseStats:{hp:35,atk:55,def:40,spa:50,spd:50,spe:90},abilities:{0:"Static",H:"Lightning Rod"},heightm:0.4,weightkg:6,color:"Yellow",prevo:"pichu",evos:["raichu"],evoLevel:1,eggGroups:["Field","Fairy"],otherFormes:["pikachucosplay","pikachurockstar","pikachubelle","pikachupopstar","pikachuphd","pikachulibre"]},
pikachucosplay:{num:25,species:"Pikachu-Cosplay",baseSpecies:"Pikachu",forme:"Cosplay",formeLetter:"C",types:["Electric"],gender:"F",baseStats:{hp:35,atk:55,def:40,spa:50,spd:50,spe:90},abilities:{0:"Static",H:"Lightning Rod"},heightm:0.4,weightkg:6,color:"Yellow",eggGroups:["Undiscovered"]},
pikachurockstar:{num:25,species:"Pikachu-Rock-Star",baseSpecies:"Pikachu",forme:"Rock-Star",formeLetter:"R",types:["Electric"],gender:"F",baseStats:{hp:35,atk:55,def:40,spa:50,spd:50,spe:90},abilities:{0:"Static",H:"Lightning Rod"},heightm:0.4,weightkg:6,color:"Yellow",eggGroups:["Undiscovered"]},
pikachubelle:{num:25,species:"Pikachu-Belle",baseSpecies:"Pikachu",forme:"Belle",formeLetter:"B",types:["Electric"],gender:"F",baseStats:{hp:35,atk:55,def:40,spa:50,spd:50,spe:90},abilities:{0:"Static",H:"Lightning Rod"},heightm:0.4,weightkg:6,color:"Yellow",eggGroups:["Undiscovered"]},
pikachupopstar:{num:25,species:"Pikachu-Pop-Star",baseSpecies:"Pikachu",forme:"Pop-Star",formeLetter:"P",types:["Electric"],gender:"F",baseStats:{hp:35,atk:55,def:40,spa:50,spd:50,spe:90},abilities:{0:"Static",H:"Lightning Rod"},heightm:0.4,weightkg:6,color:"Yellow",eggGroups:["Undiscovered"]},
@@ -332,7 +333,7 @@ nosepass:{num:299,species:"Nosepass",types:["Rock"],baseStats:{hp:30,atk:45,def:
skitty:{num:300,species:"Skitty",types:["Normal"],genderRatio:{M:0.25,F:0.75},baseStats:{hp:50,atk:45,def:45,spa:35,spd:35,spe:50},abilities:{0:"Cute Charm",1:"Normalize",H:"Wonder Skin"},heightm:0.6,weightkg:11,color:"Pink",evos:["delcatty"],eggGroups:["Field","Fairy"]},
delcatty:{num:301,species:"Delcatty",types:["Normal"],genderRatio:{M:0.25,F:0.75},baseStats:{hp:70,atk:65,def:65,spa:55,spd:55,spe:70},abilities:{0:"Cute Charm",1:"Normalize",H:"Wonder Skin"},heightm:1.1,weightkg:32.6,color:"Purple",prevo:"skitty",evoLevel:1,eggGroups:["Field","Fairy"]},
sableye:{num:302,species:"Sableye",types:["Dark","Ghost"],baseStats:{hp:50,atk:75,def:75,spa:65,spd:65,spe:50},abilities:{0:"Keen Eye",1:"Stall",H:"Prankster"},heightm:0.5,weightkg:11,color:"Purple",eggGroups:["Human-Like"],otherFormes:["sableyemega"]},
sableyemega:{num:302,species:"Sableye-Mega",baseSpecies:"Sableye",forme:"Mega",formeLetter:"M",types:["Dark","Ghost"],baseStats:{hp:50,atk:85,def:125,spa:85,spd:115,spe:20},abilities:{0:"Magic Bounce"},heightm:0.5,weightkg:11,color:"Purple",eggGroups:["Human-Like"]},
sableyemega:{num:302,species:"Sableye-Mega",baseSpecies:"Sableye",forme:"Mega",formeLetter:"M",types:["Dark","Ghost"],baseStats:{hp:50,atk:85,def:125,spa:85,spd:115,spe:20},abilities:{0:"Magic Bounce"},heightm:0.5,weightkg:161,color:"Purple",eggGroups:["Human-Like"]},
mawile:{num:303,species:"Mawile",types:["Steel","Fairy"],baseStats:{hp:50,atk:85,def:85,spa:55,spd:55,spe:50},abilities:{0:"Hyper Cutter",1:"Intimidate",H:"Sheer Force"},heightm:0.6,weightkg:11.5,color:"Black",eggGroups:["Field","Fairy"],otherFormes:["mawilemega"]},
mawilemega:{num:303,species:"Mawile-Mega",baseSpecies:"Mawile",forme:"Mega",formeLetter:"M",types:["Steel","Fairy"],baseStats:{hp:50,atk:105,def:125,spa:55,spd:95,spe:50},abilities:{0:"Huge Power"},heightm:1,weightkg:23.5,color:"Black",eggGroups:["Field","Fairy"]},
aron:{num:304,species:"Aron",types:["Steel","Rock"],baseStats:{hp:50,atk:70,def:100,spa:40,spd:40,spe:30},abilities:{0:"Sturdy",1:"Rock Head",H:"Heavy Metal"},heightm:0.4,weightkg:60,color:"Gray",evos:["lairon"],eggGroups:["Monster"]},