mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 16:26:15 -05:00
Fix Pickpocket
This commit is contained in:
parent
dfbf0daf27
commit
1a6e62ef7b
|
|
@ -1850,9 +1850,9 @@ exports.BattleAbilities = {
|
|||
num: 53
|
||||
},
|
||||
"pickpocket": {
|
||||
desc: "If this Pokemon has no item, it steals the item off a Pokemon that makes contact with it.",
|
||||
desc: "If this Pokemon has no item, it steals the item off a Pokemon that makes contact with it. This effect applies after all hits from a multi-hit move; Sheer Force prevents it from activating if the move has a secondary effect.",
|
||||
shortDesc: "If this Pokemon has no item, it steals the item off a Pokemon making contact with it.",
|
||||
onAfterDamage: function (damage, target, source, move) {
|
||||
onAfterMoveSecondary: function (target, source, move) {
|
||||
if (source && source !== target && move && move.flags['contact']) {
|
||||
if (target.item) {
|
||||
return;
|
||||
|
|
@ -1865,7 +1865,7 @@ exports.BattleAbilities = {
|
|||
source.item = yourItem.id;
|
||||
return;
|
||||
}
|
||||
this.add('-item', target, yourItem, '[from] ability: Pickpocket');
|
||||
this.add('-item', target, yourItem, '[from] ability: Pickpocket', '[of] ' + source);
|
||||
}
|
||||
},
|
||||
id: "pickpocket",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user