1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-12-23 21:03:14 +00:00

bug prevent + detection

This commit is contained in:
exane 2015-07-02 19:34:30 +02:00
parent 3e5c660d6d
commit 1d9328ddbd
2 changed files with 6 additions and 3 deletions

View File

@ -624,12 +624,15 @@ Battleside = (function(){
r.setWeather = function(weather, opt){
var targetRow = weather;
var field;
if(typeof targetRow === "undefined") return;
if(typeof targetRow === "undefined") {
console.log("setWeather: targetRow undefined", targetRow);
console.trace(this);
return;
}
opt = opt || {};
var onRoundEnd = opt.onTurnEnd || false;
//console.log(this.field[Card.TYPE.WEATHER]);
if(targetRow === Card.TYPE.WEATHER){
if(!onRoundEnd){
this.battle.sendNotification(this.getName() + " played Clear Weather!");

View File

@ -89,7 +89,7 @@ var Card = (function(){
}
r.setForcedPower = function(nr){
this._forcedPower = nr;
/*this.getBoost(); *///recalculate
this.getBoost(); //recalculate
}
r.getRawAbility = function(){
return this._data.ability;