mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
bug prevent + detection
This commit is contained in:
parent
3e5c660d6d
commit
1d9328ddbd
@ -624,12 +624,15 @@ Battleside = (function(){
|
|||||||
r.setWeather = function(weather, opt){
|
r.setWeather = function(weather, opt){
|
||||||
var targetRow = weather;
|
var targetRow = weather;
|
||||||
var field;
|
var field;
|
||||||
if(typeof targetRow === "undefined") return;
|
if(typeof targetRow === "undefined") {
|
||||||
|
console.log("setWeather: targetRow undefined", targetRow);
|
||||||
|
console.trace(this);
|
||||||
|
return;
|
||||||
|
}
|
||||||
opt = opt || {};
|
opt = opt || {};
|
||||||
var onRoundEnd = opt.onTurnEnd || false;
|
var onRoundEnd = opt.onTurnEnd || false;
|
||||||
|
|
||||||
|
|
||||||
//console.log(this.field[Card.TYPE.WEATHER]);
|
|
||||||
if(targetRow === Card.TYPE.WEATHER){
|
if(targetRow === Card.TYPE.WEATHER){
|
||||||
if(!onRoundEnd){
|
if(!onRoundEnd){
|
||||||
this.battle.sendNotification(this.getName() + " played Clear Weather!");
|
this.battle.sendNotification(this.getName() + " played Clear Weather!");
|
||||||
|
@ -89,7 +89,7 @@ var Card = (function(){
|
|||||||
}
|
}
|
||||||
r.setForcedPower = function(nr){
|
r.setForcedPower = function(nr){
|
||||||
this._forcedPower = nr;
|
this._forcedPower = nr;
|
||||||
/*this.getBoost(); *///recalculate
|
this.getBoost(); //recalculate
|
||||||
}
|
}
|
||||||
r.getRawAbility = function(){
|
r.getRawAbility = function(){
|
||||||
return this._data.ability;
|
return this._data.ability;
|
||||||
|
Loading…
Reference in New Issue
Block a user