private void Fighter_OnSlideEvt(Fighter target, Fighter source, short startCellId, short endCellId) { EffectInstance effect = EffectInstance.New(Protocol.Selfmade.Enums.EffectsEnum.Eff_AddShield, 0, 500, 500, 0, 2, "a1", "a"); var level = CreateBasicSpellLevel(3, new List <EffectInstance>() { effect }, 2216); Fighter.ForceSpellCast(level, Fighter.CellId); }
private void Fighter_OnTurnEndEvt(Fighter obj) { EffectInstance effect = EffectInstance.New(Protocol.Selfmade.Enums.EffectsEnum.Effect_SwitchPosition, 0, 0, 0, 0, 2, "P1", "a#A"); var level = CreateBasicSpellLevel(3, new List <EffectInstance>() { effect }, 24); var fighter = obj.OposedTeam().LowerFighterPercentage(); if (fighter != null) { Fighter.ForceSpellCast(level, fighter.CellId); } }