sIKE23 / Mage-Wars

Mage Wars for OCTGN
7 stars 5 forks source link

When casting a spell, canceling the askInterger window for casting cost, should cancel the casting of the spell #245

Closed sIKE23 closed 9 years ago

sIKE23 commented 9 years ago

@ACG8 - I tried to figure this one out, but I was not able to trace why canceling the casting cost was not canceling the attack, but I am getting lost in the "steps" functions in attacks.py. Could you take a look at this for me?

ACG8 commented 9 years ago

Sure. I should be able to do some work on this this weekend.

sIKE23 commented 9 years ago

I was finally able to figure it out. I was looking in the wrong spot! Had to go back to the onTargetCardArrow function to capture the cancelation of the spell being cast. I also moved flipping the card over until after the cost was paid and the spell resolved.

sIKE23 commented 9 years ago

This works like I would expect it to now....