Results 1 to 2 of 2

Thread: Hidden channeling ability not cast by CastAbilityOnTarget

  1. #1
    Basic Member AgentP's Avatar
    Join Date
    Jul 2015
    Posts
    15

    Hidden channeling ability not cast by CastAbilityOnTarget

    I have encountered a bug in the tools when trying to cast a hidden ability from lua using unit:CastAbilityOnTarget. First of all I was trying this with a RunScript inside an OnChannelSucceeded block. The runscript would fire for the ability when cast manually and from lua. Adding the behaviour DOTA_ABILITY_BEHAVIOR_HIDDEN to the ability works in the sense that is hides the ability, it however also stops the RunScript from firing.

    Once I encountered this bug I have also tried moving the RunScript in a OnSpellStart block, which again fired when the ability is visible, but not when hidden. Furthermore I have tried removing the channeling part of the ability, but that changed nothing.

    My current ability behavior field is the following:
    Code:
    "AbilityBehavior"	"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK | DOTA_ABILITY_BEHAVIOR_CHANNELLED"
    PS: Setting the ability to be hidden through either DOTA_ABILITY_BEHAVIOR_HIDDEN or in lua with ability:SetHidden( true ) has the same effect.
    Last edited by AgentP; 07-07-2015 at 06:32 AM.

  2. #2
    Basic Member
    Join Date
    Dec 2011
    Posts
    9
    Code:
    caster:SetCursorCastTarget(target)
    ability:OnSpellStart()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •