Example #1
0
        private static void CastBOSS2_3(Skill s, GameMode game)
        {
            SkillCaster.CastToVoid(s);

            BoomDeBUFF debuff = new BoomDeBUFF(s.skillName, s.Caster, 10f, s.Power);

            if (game.TeamDic[TeamDuty.MeleeDPS].Count > 0)
            {
                List <Character> list = game.TeamDic[TeamDuty.MeleeDPS];
                list[UnityEngine.Random.Range(0, list.Count - 1)].Buffs.Add(debuff);
            }
            else if (game.TeamDic[TeamDuty.Tank].Count > 0)
            {
                List <Character> list = game.TeamDic[TeamDuty.Tank];
                list[UnityEngine.Random.Range(0, list.Count - 1)].Buffs.Add(debuff);
            }

            debuff = new BoomDeBUFF(s.skillName, s.Caster, 10f, s.Power);
            if (game.TeamDic[TeamDuty.RangeDPS].Count > 0)
            {
                List <Character> list = game.TeamDic[TeamDuty.RangeDPS];
                list[UnityEngine.Random.Range(0, list.Count - 1)].Buffs.Add(debuff);
            }
            else if (game.TeamDic[TeamDuty.Healer].Count > 0)
            {
                List <Character> list = game.TeamDic[TeamDuty.Healer];
                list[UnityEngine.Random.Range(0, list.Count - 1)].Buffs.Add(debuff);
            }
        }
Example #2
0
        private static void CastShield(Skill s, GameMode game)
        {
            SkillCaster.CastToVoid(s);
            ShieldBUFF buff = new ShieldBUFF(s.Caster, 10f, s.Power);

            game.FocusCharacter.Buffs.Add(buff);
        }
Example #3
0
 private static void CastTeamBuff(Skill s, GameMode game)
 {
     SkillCaster.CastToVoid(s);
     foreach (Character v in game.TeamCharacters)
     {
         PTeamBuff buff = new PTeamBuff(s.Caster);
         v.Buffs.Add(buff);
     }
 }