...
 
Commits (1)
......@@ -857,7 +857,7 @@ protected:
if (!canAttack(c->getTypeIndex()))
return;
if (c->hit(getDamage() / (splash ? 2 : 1), getTypeIndex() == TOWER_ICE ||
if (c->hit(getDamage() / (splash ? 2 : 1), (getTypeIndex() == TOWER_ICE) ||
(hasUpgraded(UPGRADE_SHOCK) && (rand() % 3) == 0)))
{
*money += c->getType().mReward;
......@@ -1579,6 +1579,7 @@ struct Game
mCursor.mX = 8;
mCursor.mY = 4;
mSelectedMenuItem = 0;
srand(0); // make the game deterministic
mState = STATE_PLAYING_BUILDING;
}
......