how can i make the heart of tarrasque consumable????

i tried making my own item but i cant seem to make it work?

"item_heartas"
{
 "BaseClass"      "item_datadriven"
 "AbilityBehavior"     "DOTA_ABILITY_BEHAVIOR_NO_TARGET"

 "AbilityTextureName"    "animal_courier.png"
 "Model"                   "chest_worlddrop.vmdl"

 "ItemQuality"                   "common" //Green
 "ItemCost"                      "350"
 "ItemStackable"                 "1"
 "ItemPermanent"                 "0"
 "ItemInitialCharges"        "1"
 "ItemDisplayCharges"        "1"
 "ItemRequiresCharges"       "1"

    "OnAbilityExecuted"
    {
        "ApplyModifier"
        {
          "MODIFIER_PROPERTY_HEALTH_BONUS"  "50000"
          "Target"        "CASTER"
        }

    }
}

Comments

  • LnnLnn
    Posts: 2

    Add an actual modifier to your ability