mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-10-27 02:32:57 -05:00
Add Fairy Gem
This commit is contained in:
@@ -245,7 +245,7 @@ exports.BattleItems = {
|
||||
}
|
||||
}
|
||||
},
|
||||
num: -7,
|
||||
num: -6,
|
||||
gen: 6,
|
||||
desc: "Holder's Sp. Def is 1.5x, but it can only use damaging moves."
|
||||
},
|
||||
@@ -1238,6 +1238,25 @@ exports.BattleItems = {
|
||||
gen: 4,
|
||||
desc: "Holder's super effective attacks against other Pokemon do 1.2x damage."
|
||||
},
|
||||
"fairygem": {
|
||||
id: "fairygem",
|
||||
name: "Fairy Gem",
|
||||
isUnreleased: true,
|
||||
spritenum: 0,
|
||||
isGem: true,
|
||||
onSourceTryPrimaryHit: function (target, source, move) {
|
||||
if (target === source || move.category === 'Status') return;
|
||||
if (move.type === 'Fairy') {
|
||||
if (source.useItem()) {
|
||||
this.add('-enditem', source, 'Fairy Gem', '[from] gem', '[move] ' + move.name);
|
||||
source.addVolatile('gem');
|
||||
}
|
||||
}
|
||||
},
|
||||
num: -6,
|
||||
gen: 6,
|
||||
desc: "Holder's first successful Fairy-type attack will have 1.3x power. Single use."
|
||||
},
|
||||
"fastball": {
|
||||
id: "fastball",
|
||||
name: "Fast Ball",
|
||||
@@ -3077,7 +3096,7 @@ exports.BattleItems = {
|
||||
return this.chainModify(1.2);
|
||||
}
|
||||
},
|
||||
num: 311,
|
||||
num: -6,
|
||||
gen: 6,
|
||||
desc: "Holder's Fairy-type attacks have 1.2x power. Judgment is Fairy-type."
|
||||
},
|
||||
@@ -3550,7 +3569,7 @@ exports.BattleItems = {
|
||||
onImmunity: function (type, pokemon) {
|
||||
if (type === 'sandstorm' || type === 'hail' || type === 'powder') return false;
|
||||
},
|
||||
num: -8,
|
||||
num: -6,
|
||||
gen: 6,
|
||||
desc: "Protects the holder from weather-related damage and powder moves."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user