Fix Pickpocket

This commit is contained in:
Marty-D 2015-04-05 10:55:02 -04:00
parent dfbf0daf27
commit 1a6e62ef7b

View File

@ -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",