Shed Bell may be nullified by Sheer Force

Also remove 'AfterMove' global event from all gens, and 'AfterMoveSelf' from Gen 3 onwards.
This commit is contained in:
Slayer95
2014-07-14 19:03:38 -05:00
parent 3b22b1f570
commit 377345454f
3 changed files with 4 additions and 4 deletions

View File

@@ -3686,7 +3686,8 @@ exports.BattleItems = {
fling: {
basePower: 30
},
onAfterMoveSelf: function (source, target) {
onAfterMoveSecondarySelfPriority: -1,
onAfterMoveSecondarySelf: function (source, target) {
if (source.lastDamage > 0) {
this.heal(source.lastDamage / 8, source);
}

View File

@@ -44,8 +44,7 @@ exports.BattleScripts = {
pokemon.moveUsed(move);
this.useMove(move, pokemon, target, sourceEffect);
this.singleEvent('AfterMove', move, null, pokemon, target, move);
this.runEvent('AfterMove', target, pokemon, move);
this.runEvent('AfterMoveSelf', pokemon, target, move);
if (this.gen <= 2) this.runEvent('AfterMoveSelf', pokemon, target, move);
},
useMove: function (move, pokemon, target, sourceEffect) {
if (!sourceEffect && this.effect.id) sourceEffect = this.effect;

View File

@@ -78,7 +78,7 @@ exports.BattleItems = {
},
"bigroot": {
inherit: true,
onAfterMoveSelf: function (source, target) {
onAfterMoveSecondarySelf: function (source, target) {
if (source.hasType('Grass')) {
if (source.lastDamage > 0) {
this.heal(source.lastDamage / 8, source);