{
for (EffectTemplate et : skill.getEffectTemplates())
{
for (Summon summon : player.getSummonList())
{
Env env = new Env(summon, summon, skill);
Effect effect = et.getEffect(env);
effect.setPeriod(time);
summon.getEffectList().addEffect(effect);
summon.updateEffectIconsImpl();
}
}
}
else
{
for (EffectTemplate et : skill.getEffectTemplates())
{
Env env = new Env(player, player, skill);
Effect effect = et.getEffect(env);
effect.setPeriod(time);
player.getEffectList().addEffect(effect);
player.updateEffectIconsImpl();
}