Ring Target only affects type-to-type immunities

This commit is contained in:
Guangcong Luo 2013-12-10 12:56:20 -08:00
parent e226249395
commit 9fbeebcb8a

View File

@ -1105,12 +1105,15 @@ var BattlePokemon = (function() {
return true;
}
if (this.negateImmunity[type]) return true;
if (!this.negateImmunity['Type'] && !this.battle.getImmunity(type, this)) {
this.battle.debug('natural immunity');
if (message) {
this.battle.add('-immune', this, '[msg]');
if (!(this.negateImmunity['Type'] && type in this.data.TypeChart)) {
// Ring Target not active
if (!this.battle.getImmunity(type, this)) {
this.battle.debug('natural immunity');
if (message) {
this.battle.add('-immune', this, '[msg]');
}
return false;
}
return false;
}
var immunity = this.battle.runEvent('Immunity', this, null, null, type);
if (!immunity) {