home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineSprite_538 / frame_38 / DoAction.as
Encoding:
Text File  |  2005-09-27  |  189 b   |  10 lines

  1. if(_parent.die == 1)
  2. {
  3.    gotoAndStop("dead");
  4.    play();
  5. }
  6. else
  7. {
  8.    _root.castleHp -= random(2 + _root.level * 1 + _root.hlevel) + 3 + _root.level - _root.gotWall * random(4);
  9. }
  10.