home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineSprite_827 / frame_28 / DoAction.as
Encoding:
Text File  |  2005-09-27  |  225 b   |  10 lines

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