Решено Криты фантомки с минус армором(делал на примере старого чаоса)

WameCos

Новичок
13 Фев 2020
7
0
Проект
Golde Arena
"phantom_assassin_coup_de_grace_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "ability_datadriven"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"AbilityType" "DOTA_ABILITY_TYPE_ULTIMATE"
"SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_YES"
"AbilityTextureName" "phantom_assassin_coup_de_grace"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"multiplier_damage" "215"
}
"02"
{
"var_type" "FIELD_INTEGER"
"reduction_armor" "-5"
}
"03"
{
"var_type" "FIELD_INTEGER"
"duration" "10"
}
"04"
{
"var_type" "FIELD_INTEGER"
"chance" "100"
}
}

"Modifiers"
{
"modifier_coup_de_grace_datadriven"
{
"Passive" "1"
"IsHidden" "1"

"OnAttackStart"
{
"RemoveModifier"
{
"ModifierName" "modifier_coup_de_grace_crit_datadriven"
"Target" "CASTER"
}

"Random"
{
"Chance" "%chance"
"PseudoRandom" "DOTA_PSEUDO_RANDOM_PHANTOMASSASSIN_CRIT"

"OnSuccess"
{
"ApplyModifier"
{
"ModifierName" "modifier_coup_de_grace_crit_datadriven"
"Target" "CASTER"
}
}
}
}
}

"modifier_coup_de_grace_crit_datadriven"
{
"IsHidden" "1"

"Properties"
{
"MODIFIER_PROPERTY_PREATTACK_CRITICALSTRIKE" "%multiplier_damage"
}

"OnAttack"
{
"ApplyModifier"
{
"ModifierName" "modifier_chaos_strike_armor_datadriven"
"Target" "TARGET"
"Duration" "%duration"
}
}

"OnAttackLanded"
{
"RemoveModifier"
{
"ModifierName" "modifier_coup_de_grace_crit_datadriven"
"Target" "CASTER"
}
}
}

"modifier_chaos_strike_armor_datadriven"
{
"IsDebuff" "1"

"Properties"
{
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%reduction_armor"
}
}
}
}
 

xDes

Продвинутый
8 Ноя 2018
210
28
Проект
Boss Survival Adventure
зачем при шансе 100 чекать шанс? и вообще зачем ты создал тему для этого?
 
  • Нравится
Реакции: CrySidingWorld
Реклама: