Ошибка со скиллом datadriven

LigvyRofler

Новичок
15 Сен 2018
9
0
Иконка скилла в герое есть,но если юзаю ничего не происходит
Вот код

"super_yashka"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "ability_datadriven"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
"AbilityTextureName" "super_yashka"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "0"
"AbilityCastPoint" "0.3 0.3 0.3 0.3"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "10.0 10.0 10.0 10.0"
"AbilityDuration" "15.0 15.0 15.0 15.0"

// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "45 55 65 75"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"max_attacks" "6 9 12 15"
}
"02"
{
"var_type" "FIELD_INTEGER"
"attack_speed_bonus_pct" "250 500 1000 1500"
}
"03"
{
"var_type" "FIELD_INTEGER"
"duration_tooltip" "9999"
}
}

// Data driven
//-------------------------------------------------------------------------------------------------------------
"precache"
{
"soundfile" "soundevents/game_sounds_heroes/game_sounds_ursa.vsndevts"
"particle" "particles/status_fx/status_effect_overpower.vpcf"
"particle" "particles/units/heroes/hero_ursa/ursa_overpower_buff.vpcf"
}

"OnSpellStart"
{
"FireSound"
{
"Target" "CASTER"
"EffectName" "Hero_Ursa.Overpower"
}

"RunScript"
{
"ScriptFile" "heroes/hero_ursa/overpower.lua"
"Function" "overpower_init"
}
}

"Modifiers"
{
"modifier_enrage_buff_datadriven"
{
"Duration" "%duration_tooltip"

"StatusEffectName" "particles/status_fx/status_effect_overpower.vpcf"
"StatusEffectPriority" "10"

"OnCreated"
{
"AttachEffect"
{
"Target" "CASTER"
"EffectName" "particles/units/heroes/hero_ursa/ursa_overpower_buff.vpcf"
"EffectAttachType" "start_at_customorigin"
"ControlPointEntities"
{
"CASTER" "attach_head"
"CASTER" "attach_hitloc"
"CASTER" "attach_hitloc"
"CASTER" "attach_hitloc"
}
}
}

"OnAttack"
{
"RunScript"
{
"ScriptFile" "heroes/hero_ursa/overpower.lua"
"Function" "overpower_decrease_stack"
}
}

"Properties"
{
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "%attack_speed_bonus_pct"
}
}
}
}
 
Последнее редактирование:
Реклама: