Exemplo n.º 1
0
 public override void OnDealDamage(EntityStats dealer, EntityStats target, DamageSource damageInfo = null)
 {
     if ((damageInfo != null && damageInfo.skillType == onlyForTypeAttacks) || onlyForTypeAttacks == SkillType.None)
     {
         target.ApplyState(stateToApply, dealer);
     }
 }
Exemplo n.º 2
0
 public void ApplyStatesToEntity(EntityStats target)
 {
     if (statesToApply != null && statesToApply.Length > 0)
     {
         for (int i = 0; i < statesToApply.Length; i++)
         {
             target.ApplyState(statesToApply[i], owner);
         }
     }
 }