public override SkillEffect[] CreateEffects(int param) { SkillEffect[] effs = new SkillEffect[1]; EffectDamageOverTime eff = new EffectDamageOverTime(baseDamage, duration, 1.0f); eff.effectName = effectName; effs[0] = eff; return(effs); }
public override SkillEffect[] CreateAdditionalSkillEffects(Skill sk, SkillEffect[] effects) { if (sk.GetSkillId() == SkillId.SneezeShot) { SneezeShot skill = sk as SneezeShot; SkillEffect[] newEffects = new SkillEffect[2]; newEffects[0] = new EffectSlow((AddValueByLevel(SLOW_AMMOUNT_PERCENT, SLOW_LEVEL_ADD) / 100f), 5); newEffects[1] = new EffectDamageOverTime((int)AddValueByLevel(DAMAGE, LEVEL_ADD), 5, 1, false); return(newEffects); } return(null); }