コード例 #1
0
 @Override
 public void onAction(L1PcInstance pc) {
   L1Attack attack = new L1Attack(pc, this);
   if (attack.calcHit()) {
     attack.calcDamage();
     attack.addPcPoisonAttack(pc, this);
   }
   attack.action();
   attack.commit();
 }
コード例 #2
0
ファイル: L1FollowerInstance.java プロジェクト: kenit/l1j-wk
 @Override
 public void onAction(L1PcInstance pc, int skillId) {
   L1Attack attack = new L1Attack(pc, this, skillId);
   if (attack.calcHit()) {
     attack.calcDamage();
     attack.calcStaffOfMana();
     attack.addPcPoisonAttack(pc, this);
     attack.addChaserAttack();
   }
   attack.action();
   attack.commit();
 }