Fix the rest of the Air Lock interaction bugs

Specifically, Sandstorm's SpD boost and Weather Ball's power/type.
This commit is contained in:
Guangcong Luo 2013-04-22 01:28:27 -07:00
parent 1bc5f3749e
commit 0ef3daa0f1
2 changed files with 2 additions and 2 deletions

View File

@ -13076,7 +13076,7 @@ exports.BattleMovedex = {
pp: 10,
priority: 0,
onModifyMove: function(move) {
switch (this.weather) {
switch (this.effectiveWeather()) {
case 'sunnyday':
move.type = 'Fire';
break;

View File

@ -409,7 +409,7 @@ exports.BattleStatuses = {
return 5;
},
onModifySpD: function(spd, pokemon) {
if (pokemon.hasType('Rock')) {
if (pokemon.hasType('Rock') && this.isWeather('sandstorm')) {
return spd * 3/2;
}
},