예제 #1
0
        private void Spells(Hero hero, AbilityId abilityId, Vector3 position)
        {
            try
            {
                var isDangerousSpell = DangerousAbility.DangerousSpells.Contains(abilityId);
                if (hero == null)
                {
                    Verification.EntityVerification(position, "npc_dota_hero_default", abilityId, 0, isDangerousSpell);
                    return;
                }

                if (hero.IsAlly(EntityManager.LocalHero))
                {
                    return;
                }

                if (!hero.IsVisible || PartialMapHackMenu.WhenIsVisibleItem && isDangerousSpell)
                {
                    Verification.EntityVerification(position, hero.Name, abilityId, hero.Player.Id + 1, isDangerousSpell);
                }
            }
            catch (Exception e)
            {
                Log.Error(e);
            }
        }
예제 #2
0
        private void Spells(AbilityId abilityId, string particleName, Vector3 position)
        {
            try
            {
                if (position.IsZero)
                {
                    return;
                }

                var isDangerousSpell = DangerousAbility.DangerousSpells.Contains(abilityId);
                var hero             = FindHeroWithSpells(abilityId);
                if (hero == null)
                {
                    if (abilityId == AbilityId.viper_poison_attack)
                    {
                        return;
                    }

                    Verification.EntityVerification(position, "npc_dota_hero_default", abilityId, 0, isDangerousSpell, particleName);
                    return;
                }

                if (hero.IsAlly(LocalHero))
                {
                    return;
                }

                if (!hero.IsVisible || PartialMapHackMenu.WhenIsVisibleItem && isDangerousSpell)
                {
                    Verification.EntityVerification(position, hero.Name, abilityId, hero.Player.Id + 1, isDangerousSpell, particleName);
                }
            }
            catch (Exception e)
            {
                Log.Error(e);
            }
        }