コード例 #1
0
 [EffectHandler(EffectsEnum.Eff_Teleport)]  //Bond de Iop
 public static void Teleport(Fighter fighter, SpellLevelRecord level, ExtendedSpellEffect effect, List <Fighter> affecteds, short castcellid)
 {
     if (fighter.Fight.IsObstacle(castcellid))
     {
         return;
     }
     fighter.Fight.Send(new SequenceStartMessage(5, fighter.ContextualId));
     fighter.Fight.Send(new GameActionFightTeleportOnSameMapMessage(4, fighter.ContextualId, fighter.ContextualId, castcellid));
     fighter.Fight.Send(new SequenceEndMessage(2, fighter.ContextualId, 5));
     fighter.ApplyFighterEvent(FighterEventType.ON_TELEPORTED, castcellid);
     fighter.CellId = castcellid;
 }
コード例 #2
0
 public static void Teleport(Fighter fighter, SpellLevelRecord level, ExtendedSpellEffect effect, List<Fighter> affecteds, short castcellid)
 {
     if (fighter.Fight.IsObstacle(castcellid))
         return;
     fighter.Fight.Send(new SequenceStartMessage(5, fighter.ContextualId));
     fighter.Fight.Send(new GameActionFightTeleportOnSameMapMessage(4, fighter.ContextualId, fighter.ContextualId, castcellid));
     fighter.Fight.Send(new SequenceEndMessage(2, fighter.ContextualId, 5));
     fighter.ApplyFighterEvent(FighterEventType.ON_TELEPORTED, castcellid);
     fighter.CellId = castcellid;
 }