Skip to content

Commit

Permalink
Fix drawequip typo that made active mill to next equip
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Aug 3, 2015
1 parent 121cc71 commit fa249a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Skills.js
Expand Up @@ -458,9 +458,10 @@ drawcopy:function(c,t){
},
drawequip:function(c,t){
for(var i=c.owner.deck.length-1; i>-1; i--){
var card = c.owner.deck.splice(i, 1)[0];
var card = c.owner.deck[i];
if (card.type == etg.WeaponEnum || card.type == etg.ShieldEnum){
if (~new etg.CardInstance(card, c.owner).place()){
c.owner.deck.splice(i, 1);
c.owner.proc("draw");
}
return;
Expand Down

0 comments on commit fa249a1

Please sign in to comment.