#373

Discarded

Cannot perform counter manipulation

Reported by Divided By zer0 on OCTGN · 26/04/2011 13:20:16

Assigned to:
jods
Priority:
Normal
Status:
Discarded
Category:
None
Version:
0.9.*
Issue type:
Bug

I’m trying to add a card property value to a counter. Say my card has the property “Production” (which has been defined as an integer on the xml) and I have a counter called “Bank”. I try to do the following

me.Bank += card.Production

And it will fail silently (and the whole script will abort).

But if I do

cost = int(card.Production)
me.Bank += cost

it works. So it seems as if somehow the definition in the xml that properties are integers, is ignored?

Attachments

No attachment has been uploaded, yet.


Loading comments...