foreach Effect activeEffect in activeEffects activeEffect Act this OnA

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
foreach (Effect activeEffect in activeEffects)
{
activeEffect.Act(this);
OnAttack(new AttackEvent(activeEffect.ApplyKnowledge));
}
public void Act(Hero hero)
{
applyKnowledge.Act(hero, powerEffect * resistance);
activeTime--;
}