Exemplo n.º 1
0
 public TheHermit() : base(AbilityType.Passive, "The Hermit")
 {
     OnAwake += () =>
     {
         Stat hp = ParentCharacter.GetStat(StatType.HealthPoints);
         _lastTreshold   = hp.BaseValue;
         hp.StatChanged += () =>
         {
             while (hp.Value < _lastTreshold - 15)
             {
                 _lastTreshold -= 15;
                 StunEnemiesInRange();
             }
         };
     };
 }