mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-28 12:04:28 -05:00
Red Card does activate on non-contact moves, but only when damage is dealt.
This commit is contained in:
2
items.js
2
items.js
@@ -2364,7 +2364,7 @@ exports.BattleItems = {
|
||||
basePower: 10
|
||||
},
|
||||
onAfterMoveSecondary: function(target, source, move) {
|
||||
if (source && source !== target && move && move.isContact)
|
||||
if (source && source !== target && move && source.lastDamage)
|
||||
{
|
||||
if (target.useItem()) // This order is correct - the item is used up even against a pokemon with Ingrain or that otherwise can't be forced out
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user