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

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