- Joined
- May 24, 2016
- Messages
- 339
Hello, the things is, I created a simple ability given to hydra. (seen on screenshot)
Based on fire arrow (the one that shoots the flame and stun unit)
I set range cast to 185, range missile to 9999, damage to 10 (it does not matter will it eventually hit the hero or have to travel all the way to target to 2 point)
When used, simply teleport target hero to second location point (seen on screenshot), and cast on target shadow strike ability (parameters on screenshot)
So the thing is, I encounter crashing right exactly hydra uses fire bolt ability. I encountered it in multiplayer, and managed to crash test it 2 times in a row. And then it stopped crashing. I changed nothing but it stopped. Completely. I mean, I ran around 50 test runs where I did exactly the same things all over and over, and nothing. But the problem can't be solved just because it's not repeating for me now.
Anyone could give me a clue?
Based on fire arrow (the one that shoots the flame and stun unit)
I set range cast to 185, range missile to 9999, damage to 10 (it does not matter will it eventually hit the hero or have to travel all the way to target to 2 point)
When used, simply teleport target hero to second location point (seen on screenshot), and cast on target shadow strike ability (parameters on screenshot)
So the thing is, I encounter crashing right exactly hydra uses fire bolt ability. I encountered it in multiplayer, and managed to crash test it 2 times in a row. And then it stopped crashing. I changed nothing but it stopped. Completely. I mean, I ran around 50 test runs where I did exactly the same things all over and over, and nothing. But the problem can't be solved just because it's not repeating for me now.
Anyone could give me a clue?
JASS:
elseif GetSpellAbilityId() == 'A02K' then // the trigger spell register works fine by itself, it check for other skills too
set tr = GetSpellTargetUnit()
call SetUnitX(tr,-13049)
call SetUnitY(tr,12765)
call SetUnitLife(tr,GetUnitLife(tr) + 10) // I use this alt function in damage register system by looking_for_help. It never gave me any problems. Here I add 10 hp for unit if he manages to // lose it
call GroupAddUnit(HydraShallowed,tr) // the group is declared and CreateGroup() in code, I dont recycle it or something, its cosmetic group for now
set F = CreateUnit(Player(12),dummy,GetUnitX(tr),GetUnitY(tr),0) // simple dummy I use all the way around
call UnitApplyTimedLife(F,'BTLF',1.5)
call UnitAddAbility(F,'AEsh') // that shadowstrike ability
call IssueTargetOrder(F,"shadowstrike",tr)
if GetLocalPlayer() == GetOwningPlayer(tr) then
call PanCameraToTimed(GetRectCenterX(gg_rct_HydraMouth), GetRectCenterY(gg_rct_HydraMouth), 0.5) // the region is placed on 2 location
endif
endif
Last edited: