darkfriend77
Member
- Joined
- Jun 14, 2011
- Messages
- 467
... okay I refactored silverfish a little so I could debug it ...
and I found some mistakes ... maybee im wrong ... but however after those fix some strange bugs disapeared ...
ex. this line should qualify ... all minions in play instead it logs at the position in the zone ...
should use GAME_TAG.ZONE ...
ex. this line only works if above ... has been fixed ... otherwise ... cards in hand will be true here ... and guesss what happens when u got a charge minion in hand ^^^
these are just some small stuff i found when playing with silverfish a little ...
and I found some mistakes ... maybee im wrong ... but however after those fix some strange bugs disapeared ...

ex. this line should qualify ... all minions in play instead it logs at the position in the zone ...

Code:
int zp = entiti.GetTag(GAME_TAG.ZONE_POSITION);
if (entiti.IsMinion && zp >= 1)
{
ex. this line only works if above ... has been fixed ... otherwise ... cards in hand will be true here ... and guesss what happens when u got a charge minion in hand ^^^

Code:
m.playedThisTurn = (temp == 0) ? true : false;
these are just some small stuff i found when playing with silverfish a little ...