예제 #1
0
 public override IEnumerator <YieldInstruction> Apply(GameEventOwner owner, Character ownerChar, BattleContext context)
 {
     if (context.Data.Category == BattleData.SkillCategory.Magical &&
         context.User.HasIntrinsic(SupportAbility))
     {
         context.AddContextStateMult <DmgMult>(false, 4, 3);
     }
     yield break;
 }
예제 #2
0
        public override IEnumerator <YieldInstruction> Apply(GameEventOwner owner, Character ownerChar, BattleContext context)
        {
            //only block explosions
            if (context.Explosion.Range == 0)
            {
                yield break;
            }

            //make sure to exempt Round.

            DungeonScene.Instance.LogMsg(String.Format(Msg.ToLocal(), ownerChar.GetDisplayName(false)));
            context.Explosion.Range       = 0;
            context.Explosion.ExplodeFX   = new BattleFX();
            context.Explosion.Emitter     = new EmptyCircleSquareEmitter();
            context.Explosion.TileEmitter = new EmptyFiniteEmitter();
            if (Div > 0)
            {
                context.AddContextStateMult <DmgMult>(false, 1, Div);
            }
            else
            {
                context.AddContextStateMult <DmgMult>(false, Div, 1);
            }
        }