Dummy don't cast spells on a point

Magoiche

Member
I had this problem 3 times now.
The other 2 i just changed somethings but now i need it.

JASS:
scope Wild initializer Initial

private function Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A00D'
endfunction

private function Actions takes nothing returns nothing
    local unit Caster = GetTriggerUnit()
    local real x = GetUnitX( Caster )
    local real y = GetUnitY( Caster )
    local real CastX
    local real CastY
    local real CastAngle
    local unit Dummy
    local integer LoopAIndex = 0
    loop
        exitwhen LoopAIndex > 4
        set CastAngle = GetRandomReal( 0.0 , 360.0 )
        set Dummy = CreateUnit( GetOwningPlayer( Caster ), 'u001', x, y, 0.0 )
        set CastX = x + 50 * Cos( CastAngle * 3.14159 / 180.0 )
        set CastY = y + 50 * Sin( CastAngle * 3.14159 / 180.0 )
        call UnitApplyTimedLife( Dummy, 'BFTL', 10 * GetUnitAbilityLevel( Caster, 'A00D' ) )
        call UnitAddAbility( Dummy, 'A00E' )
        call SetUnitAbilityLevel( Dummy, 'A00E', GetUnitAbilityLevel( Caster, 'A00D' ) )
        call IssuePointOrder( Dummy, "shockwave", CastX, CastY )
        set LoopAIndex = LoopAIndex + 1
    endloop
    set Caster = null
    set Dummy = null
endfunction

private function Initial takes nothing returns nothing
    local trigger trig = CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ( trig, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( trig, Condition( function Conditions ) )
    call TriggerAddAction( trig, function Actions )
    set trig = null
endfunction

endscope


The dummy have mana to cast.
The mana cost of the spell is 0.
The orderid its right.
Everything in the trigger is fine.
But the dummy just don't cast the spell.

Why? T.T
 

Troll-Brain

You can change this now in User CP.
Put some BJDebugMsg.
Make sure that GetUnitAbilityLevel( Caster, 'A00D' )>= 1, and enough high
 

Magoiche

Member
I already put it.
And as i say.
It runs everything in the trigger.
The dummy just don't cast the spell.
The spell level is ok too.
 

Troll-Brain

You can change this now in User CP.
Try to move the dummy on an other place before casting the spell, check again the conditions for the spell in the object editor, check if the functions UnitAddAbility and IssuePointOrder returns true.
 

Magoiche

Member
Lets see.
Moving the unit don't made it work.
The unit get the spell and the level of it is okay.
Everythuing fien in the object editor.
The problem is with the IssuePointOrder.
But i don't know what is it.
 

Troll-Brain

You can change this now in User CP.
unit owner is a computer ?
If it is, try with a neutral player, i've already read issues with using a computer player.
 

Magoiche

Member
No need anymore.
I just ordered to the dummy to use a spell that summons a unit.
Then i just put the trigger to summon the right unit.
=D

+rep for you for trying to help
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    Would like to get some annual forum statistics report.
  • The Helper The Helper:
    there are stats in the xenforo forum admin section and we have matomo stats we started collecting beginning of the year so we will not have annual on that until next year
  • The Helper The Helper:
    I thought you had keys to the bathroom Tom? Ghan does Tom have access to the stats thread in the bathroom
  • The Helper The Helper:
    since I started jacking with the bots on the site we doubled our page views on the site in a week lol
  • The Helper The Helper:
    I have been having lots of fun
  • The Helper The Helper:
    we have had like 6000 views of the American Airlines economy class thread in the last week
  • The Helper The Helper:
    I ought to stick a travel affiliate link or something on that page to try and monetize that they are just going there and leaving it might even be bots I am not sure
  • The Helper The Helper:
    I just got into it with the Atari VCS Facebook Moderator I started trolling him and almost got banned
  • The Helper The Helper:
    They deleted one of my posts one time so I was trolling him on a help post I put up because I am evil I guess and bored and the guy handled it well I loved his attitude Atari has a good social media presence even if they do not have many games.
  • The Helper The Helper:
    The French Atari they call them even though they are like totally based in America they just have French Money coming in. Gotta love it
  • Ghan Ghan:
    Microsoft buying Activision Blizzard holy crap!
  • The Helper The Helper:
    I know right holy cow
  • Accname Accname:
    Thats not going to save it.
  • The Helper The Helper:
    It might
  • The Helper The Helper:
    They are going to use alot of that IP in the Metaverse
  • The Helper The Helper:
    I found a new section of the stats that is freaking interesting!
  • The Helper The Helper:
    oh yeah this is what I was looking for good job matomo! These are some sweet stats I am learning the interface on it too!
  • The Helper The Helper:
    If anyone ever asks later how I found out about it was watching the site bots but not watching what they were doing but asking myself why they were here?
  • The Helper The Helper:
    there must be a reason and ok that is it
  • The Helper The Helper:
    the past and the future all come together into one
  • The Helper The Helper:
    the search engines are what built thehelper.net the search engines will make it big again maybe
  • The Helper The Helper:
    the real question is are 5 million links better than 60 real good links?
  • The Helper The Helper:
    the answer is 60 lol
  • The Helper The Helper:
    unless you put 100k links on it lol then you get something

    Staff online

    • Ghan
      Administrator - Servers are fun

    Members online

    Affiliates

    Hive Workshop NUON Dome
    Top