JASS:
//TESH.scrollpos=0
//TESH.alwaysfold=0
function BVCond takes nothing returns boolean
return GetSpellAbilityId() == 'A07T'
endfunction
function BVCast takes nothing returns nothing
local unit u = GetTriggerUnit()
local unit u2 = GetSpellTargetUnit()
local real a = Atan2(GetUnitY(u2)-GetUnitY(u), GetUnitX(u2)-GetUnitX(u))
local real x = GetUnitX(u) + ((GetUnitX(u2) - GetUnitX(u)) - (60*Cos(a)))
local real y = GetUnitY(u) + ((GetUnitY(u2) - GetUnitY(u)) - (60*Sin(a)))
call UnitDamageTarget(u, u2, GetUnitAbilityLevel(u,'A07T') * 100., false, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL, null)
call SetUnitX(u, x)
call SetUnitY(u, y)
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl", u2, "chest"))
set u = null
set u2 = null
endfunction
//===========================================================================
function InitTrig_Hyperblade_JASS takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t, Condition( function BVCond))
call TriggerAddAction(t, function BVCast)
set t = null
endfunction