Как сделать так, чтобы способность пробивала иммунитет к магии?

13 Июл 2019
1
0
1
21
Проект
пока никакой
Реакции
0 0 0
#1
пытался сделать так, чтобы палка макаки через бкб проходила, но не понимаю почему никакие флаги не помогают

Код:
"monkey_king_boundless_strike"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                    "5716"                                                        // unique ID number for this ability.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_NORMAL_WHEN_STOLEN"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_ENEMY"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_ALL"
        "AbilityUnitDamageType"            "DAMAGE_TYPE_PHYSICAL"    
        "AbilityUnitTargetFlags"         "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_INVULNERABLE"
        "FightRecapLevel"                "1"
        "SpellImmunityType"                "SPELL_IMMUNITY_ENEMIES_YES"
        "TargetFlags"  "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
        "ScriptFile"                    "abilities/hero_lina/mjz_lina_laguna_blade.lua"
        // Casting
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastAnimation"            "ACT_DOTA_MK_STRIKE"
        "AbilityCastGestureSlot"        "DEFAULT"
        "AbilityCastPoint"                "0.4"
        "AbilityCastRange"                "2000"

        // Time        
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCooldown"                "22"

        // Cost
        //-------------------------------------------------------------------------------------------------------------
        "AbilityManaCost"                "100"        

        // Special
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                    "FIELD_FLOAT"
                "stun_duration"                "1 2 3 4"
            }
            "02"
            {
                "var_type"                    "FIELD_INTEGER"
                "strike_crit_mult"            "15000 17500 20000 22500"
                "LinkedSpecialBonus"        "special_bonus_unique_monkey_king"
            }
            "03"
            {
                "var_type"                    "FIELD_INTEGER"
                "strike_radius"                "1500"
            }
            "04"
            {
                "var_type"                    "FIELD_INTEGER"
                "strike_cast_range"            "1200"
            }
        }
        
    }[code]
 

SniperX

Продвинутый
26 Фев 2018
226
39
18
steamcommunity.com
Проект
Белоозерская Потасовка - Updated
Реакции
23 0 16
#2
пытался сделать так, чтобы палка макаки через бкб проходила, но не понимаю почему никакие флаги не помогают

Код:
"monkey_king_boundless_strike"
    {
        // General
        //-------------------------------------------------------------------------------------------------------------
        "ID"                    "5716"                                                        // unique ID number for this ability.  Do not change this once established or it will invalidate collected stats.
        "AbilityBehavior"                "DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_NORMAL_WHEN_STOLEN"
        "AbilityUnitTargetTeam"            "DOTA_UNIT_TARGET_TEAM_ENEMY"
        "AbilityUnitTargetType"            "DOTA_UNIT_TARGET_ALL"
        "AbilityUnitDamageType"            "DAMAGE_TYPE_PHYSICAL"   
        "AbilityUnitTargetFlags"         "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_INVULNERABLE"
        "FightRecapLevel"                "1"
        "SpellImmunityType"                "SPELL_IMMUNITY_ENEMIES_YES"
        "TargetFlags"  "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
        "ScriptFile"                    "abilities/hero_lina/mjz_lina_laguna_blade.lua"
        // Casting
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCastAnimation"            "ACT_DOTA_MK_STRIKE"
        "AbilityCastGestureSlot"        "DEFAULT"
        "AbilityCastPoint"                "0.4"
        "AbilityCastRange"                "2000"

        // Time       
        //-------------------------------------------------------------------------------------------------------------
        "AbilityCooldown"                "22"

        // Cost
        //-------------------------------------------------------------------------------------------------------------
        "AbilityManaCost"                "100"       

        // Special
        //-------------------------------------------------------------------------------------------------------------
        "AbilitySpecial"
        {
            "01"
            {
                "var_type"                    "FIELD_FLOAT"
                "stun_duration"                "1 2 3 4"
            }
            "02"
            {
                "var_type"                    "FIELD_INTEGER"
                "strike_crit_mult"            "15000 17500 20000 22500"
                "LinkedSpecialBonus"        "special_bonus_unique_monkey_king"
            }
            "03"
            {
                "var_type"                    "FIELD_INTEGER"
                "strike_radius"                "1500"
            }
            "04"
            {
                "var_type"                    "FIELD_INTEGER"
                "strike_cast_range"            "1200"
            }
        }
       
    }[code]
С нуля пиши абилку или посмотри как ульта лины работает
 
Реклама: