Spell do only 100 dmg every time. Is it possible to make so it makes 100x level for example. Can some one help me make that code?
Here is the code now.
Here is the code now.
JASS:
//TESH.scrollpos=0
//TESH.alwaysfold=0
function BVCond takes nothing returns boolean
return GetSpellAbilityId() == 'A0AS'
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, 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_Blade_Void_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