Ejemplo n.º 1
0
 public static bool Decay_OnRoundEnd(BattleUnitBuf_Decay __instance, BattleUnitModel ____owner, ref int ___reserve)
 {
     if (!____owner.IsImmune(KeywordBuf.Decay))
     {
         ____owner.TakeDamage(__instance.stack);
         SingletonBehavior <SoundEffectManager> .Instance.PlayClip("Creature/Angry_Decay");
     }
     if (__instance.stack > 0)
     {
         __instance.stack = 0;
     }
     __instance.stack += ___reserve;
     ___reserve        = 0;
     if (__instance.stack <= 0)
     {
         __instance.Destroy();
     }
     return(false);
 }