mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
fix nilfgaardian leader ability (card goes now into users hand instead of playing it immediately)
This commit is contained in:
parent
f25f5d63cf
commit
a7536fc82a
@ -42,6 +42,8 @@ Battleside = (function(){
|
|||||||
this.off = this.battle.off.bind(this.battle);
|
this.off = this.battle.off.bind(this.battle);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.receive("activate:leader", function(){
|
this.receive("activate:leader", function(){
|
||||||
if(self._isWaiting) return;
|
if(self._isWaiting) return;
|
||||||
if(self.isPassing()) return;
|
if(self.isPassing()) return;
|
||||||
@ -107,6 +109,7 @@ Battleside = (function(){
|
|||||||
this.receive("emreis_leader4:chooseCardFromDiscard", function(data){
|
this.receive("emreis_leader4:chooseCardFromDiscard", function(data){
|
||||||
if(!data){
|
if(!data){
|
||||||
self.endTurn();
|
self.endTurn();
|
||||||
|
self.sendNotificationTo(self.foe, self.getName() + " takes no card from your discard pile (or there wasn't any card to choose)");
|
||||||
//self.runEvent("NextTurn", null, [self.foe]);
|
//self.runEvent("NextTurn", null, [self.foe]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -116,7 +119,9 @@ Battleside = (function(){
|
|||||||
|
|
||||||
self.foe.removeFromDiscard(card);
|
self.foe.removeFromDiscard(card);
|
||||||
|
|
||||||
self.placeCard(card);
|
//self.placeCard(card);
|
||||||
|
self.sendNotificationTo(self.foe, self.getName() + " takes " + card.getName() + " from your discard pile into his hand.");
|
||||||
|
self.hand.add(card);
|
||||||
|
|
||||||
self.endTurn();
|
self.endTurn();
|
||||||
// self.runEvent("NextTurn", null, [self.foe]);
|
// self.runEvent("NextTurn", null, [self.foe]);
|
||||||
|
Loading…
Reference in New Issue
Block a user