mordocai
New Member
- Reaction score
- 17
hey guys i kinda need this spell that wolfie made for me converted to vjass. +Rep, and credits will be given
JASS:
//Put this next line in your map header
group BDGROUP = CreateGroup()
//Put the above line in your map header
private function DURATION takes integer level returns integer
return (level + 2)
endfunction
private function AOE takes integer level returns integer
return ((level * 100) + 300)
endfunction
// +----------------------------------------------+
// | -=-=- NO TOUCHIE PAST HERE -=-=- |
// | -=-=- NO TOUCHIE PAST HERE -=-=- |
// | -=-=- NO TOUCHIE PAST HERE -=-=- |
// +----------------------------------------------+
private function BDGConditions takes nothing returns boolean
return IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) and IsUnitType(GetFilterUnit(), UNIT_TYPE_DEAD) != true
endfunction
private function BDGActions takes nothing returns nothing
if (bj_cineFadeContinueTimer != null) then
call DestroyTimer(bj_cineFadeContinueTimer)
endif
if (bj_cineFadeFinishTimer != null) then
call DestroyTimer(bj_cineFadeFinishTimer)
endif
call SetCineFilterTexture("ReplaceableTextures\\CameraMasks\\Black_mask.blp")
call SetCineFilterBlendMode(BLEND_MODE_BLEND)
call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
call SetCineFilterStartUV(0, 0, 1, 1)
call SetCineFilterEndUV(0, 0, 1, 1)
call SetCineFilterStartColor(100, 100, 100, 100)
call SetCineFilterEndColor(0, 0, 0, 0)
call SetCineFilterDuration(0.50)
call DisplayCineFilter(true)
if (bj_cineFadeContinueTimer != null) then
call DestroyTimer(bj_cineFadeContinueTimer)
endif
if (bj_cineFadeFinishTimer != null) then
call DestroyTimer(bj_cineFadeFinishTimer)
endif
call SetCineFilterTexture("ReplaceableTextures\\CameraMasks\\Black_mask.blp")
call SetCineFilterBlendMode(BLEND_MODE_BLEND)
call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
call SetCineFilterStartUV(0, 0, 1, 1)
call SetCineFilterEndUV(0, 0, 1, 1)
call SetCineFilterStartColor(0, 0, 0, 0)
call SetCineFilterEndColor(100, 100, 100, 100)
call SetCineFilterDuration(DURATION(GetUnitAbilityLevel(GetTriggerUnit(), BDID)))
call DisplayCineFilter(true)
endfunction
private function BDConditions takes nothing returns boolean
return (GetSpellAbilityId() == 039;A000039;)
endfunction
private function BDActions takes nothing returns nothing
local real CX = GetUnitX(GetTriggerUnit())
local real CY = GetUnitY(GetTriggerUnit())
call GroupEnumUnitsInRange(BDGROUP, CX, CY, AOE(GetUnitAbilityLevel(GetTriggerUnit(), 039;A000039;)), Condition(function BDGConditions))
call ForGroup(BDGROUP, function BDGActions)
endfunction
//====================================================================================================
private function BDInit takes nothing returns nothing
local trigger t = CreateTrigger()
local integer i = 0
loop
call TriggerRegisterPlayerUnitEvent(t, Player(i), EVENT_PLAYER_UNIT_SPELL_EFFECT, null)
set i = i + 1
exitwhen i == bj_MAX_PLAYER_SLOTS
endloop
call TriggerAddCondition(t, Condition(function BDConditions))
call TriggerAddAction(t, function BDActions)
endfunction