public override TEffectResult onStart(L2Character caster, world.L2Character target) { L2Player player = caster as L2Player; CubicTemplate template = CubicController.getController().getCubic(id, lvl); Cubic cub = new Cubic(player, template); player.AddCubic(cub, false); return(new TEffectResult().AsTotalUI()); }
public override EffectResult OnStart(L2Character caster, L2Character target) { if (!(caster is L2Player)) { return(new EffectResult().AsTotalUi()); } L2Player player = (L2Player)caster; CubicTemplate template = CubicController.GetController().GetCubic(_id, _lvl); Cubic cub = new Cubic(player, template); player.AddCubic(cub, false); return(new EffectResult().AsTotalUi()); }