Exemple #1
0
 void attackTurn()
 {
     if (monster.monsterHP <= 0.7f * monster.maxMonsterHP && monster.monsterHP > 0.3f * monster.maxMonsterHP && StageOne)
     {
         //加buff特效
         monster.addBuff(4, 0, 0, 1, 10, 2);
         StageOne = false;
     }
     if (monster.monsterHP <= 0.3f * monster.maxMonsterHP && StageTwo)
     {
         //加buff特效
         monster.addBuff(4, 0, 0, 1, 10, 2);
         StageTwo = false;
     }
     //攻击特效
     monster.attackPlayer(Monster.AttackType.Random);
     //回血特效
     monster.restoreMonsterHP(monster.attackValue);          //***********获取最终伤害值并以一定比例回复
 }
Exemple #2
0
 public void checkMonsterDeath()
 {
     //buff特效
     monster.addBuff(4, 0, 0, 1, 10, 2);
 }