Example #1
0
 // Called before the unit is updating the stat effects to see if it will update
 public virtual bool onPreUpdateStatEffect(ref StatEffect statEffect, ref BattleMap map)
 {
     return prof.onPreUpdateStatEffect(
         this,
         ((map.isUnitNearbyWithPassive(mapPos[0], mapPos[1], map.getTeamID(mapPos), "lamb\'s_blood", 2)) ?
             (Start.rng.Next(0, 5)>= 2) :
             true
         ),
         ref statEffect,
         ref map
     );
 }