Exemple #1
0
 public override void InitDamage(int value, DamageType dt, bool isAttack)
 {
     base.InitDamage(value, dt, isAttack);
     if (isAttack)
     {
         Target.addExpectedDamage(damage);
     }
 }
 static int addExpectedDamage(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         BattleSystem.ObjectModule.UnitBase obj = (BattleSystem.ObjectModule.UnitBase)ToLua.CheckObject <BattleSystem.ObjectModule.UnitBase>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.addExpectedDamage(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }