mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-13 11:45:40 -05:00
Fix Trick-or-Treat/Forest's Curse giving away foe's Illusion
This commit is contained in:
@@ -4613,7 +4613,7 @@ exports.BattleMovedex = {
|
||||
onHit: function (target) {
|
||||
if (target.hasType('Grass')) return false;
|
||||
if (!target.addType('Grass')) return false;
|
||||
this.add('-start', target, 'typechange', target.getTypes(true).join('/'), '[from] move: Forest\'s Curse');
|
||||
this.add('-start', target, 'typeadd', 'Grass', '[from] move: Forest\'s Curse');
|
||||
},
|
||||
secondary: false,
|
||||
target: "normal",
|
||||
@@ -14141,7 +14141,7 @@ exports.BattleMovedex = {
|
||||
onHit: function (target) {
|
||||
if (target.hasType('Ghost')) return false;
|
||||
if (!target.addType('Ghost')) return false;
|
||||
this.add('-start', target, 'typechange', target.getTypes(true).join('/'), '[from] move: Trick-or-Treat');
|
||||
this.add('-start', target, 'typeadd', 'Ghost', '[from] move: Trick-or-Treat');
|
||||
},
|
||||
secondary: false,
|
||||
target: "normal",
|
||||
|
||||
Reference in New Issue
Block a user