Example #1
0
        private void _hand_UseSkill(object sender, UseSkillEventArgs e)
        {
            var monster = sender as Monster;
            var msg1    = new SKanturuWideAttack
            {
                ObjClass = monster.Info.Monster,
                Type     = 1,
            };
            DamageType type;
            Spell      spell;

            if (monster.Target != null)
            {
                var attack = monster.MonsterAttack(out type, out spell);
                monster.Target?.Character.GetAttacked(monster.Index, 1, 1, attack, type, spell, 0);
            }
            switch (e.Spell)
            {
            case MonsterSpell.Pressure:
                //monster.Spells.AttackSend(Spell.pres, monster.Target.ID, true);
                break;

            case MonsterSpell.PowerWave:
                monster.Spells.AttackSend(Spell.PowerWave, monster.Target.ID, true);
                break;

            case MonsterSpell.BrokenShower:
                _manager.SendAll(msg1);
                break;

            case MonsterSpell.IceStorm:
                break;
            }
        }
Example #2
0
        private void _maya_UseSkill(object sender, UseSkillEventArgs e)
        {
            var monster = sender as Monster;
            var msg0    = new SKanturuWideAttack
            {
                ObjClass = monster.Info.Monster,
                Type     = 0,
            };

            _manager.SendAll(msg0);
        }