Name | Type | is_array | initial_value |
Hhealth | real | No | |
ragearea | real | No | |
rageeq | real | No | |
ragegrp | group | No | |
rageH | unit | No | |
rageH2 | unit | No | |
RagePT | location | No | |
ragestr | real | No | |
Scream | abilcode | No | |
screamgrp | group | No | |
ScreamHero | unit | No | |
ScreamPT | location | No | |
Soularea | real | No | |
Soulcaster | unit | No | |
Souldmg | real | No | |
Soulgrp | group | No | |
SoulIntelligence | real | No | |
Soulpt | location | No | |
Soultarget | unit | No | |
volcanogrp | group | No | |
volcanopt | location | No |
//TESH.scrollpos=27
//TESH.alwaysfold=0
function Trig_Mini_Volcano_Copy_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A007'
endfunction
function Trig_Mini_Volcano_Copy_Func003002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Mini_Volcano_Copy_Func003002003002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function Trig_Mini_Volcano_Copy_Func003002003002002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Mini_Volcano_Copy_Func003002003002002002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Mini_Volcano_Copy_Func003002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mini_Volcano_Copy_Func003002003002002001(), Trig_Mini_Volcano_Copy_Func003002003002002002() )
endfunction
function Trig_Mini_Volcano_Copy_Func003002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mini_Volcano_Copy_Func003002003002001(), Trig_Mini_Volcano_Copy_Func003002003002002() )
endfunction
function Trig_Mini_Volcano_Copy_Func003002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Mini_Volcano_Copy_Func003002003001(), Trig_Mini_Volcano_Copy_Func003002003002() )
endfunction
function Trig_Mini_Volcano_Copy_Func007A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_FIRE )
call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
function Trig_Mini_Volcano_Copy_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local location l = GetSpellTargetLoc()
local group g
local real spellX = GetLocationX(l)
local real spellY = GetLocationY(l)
set g = GetUnitsInRangeOfLocMatching(250.00, l, Condition(function Trig_Mini_Volcano_Copy_Func003002003))
call DestroyEffect(AddSpecialEffect( "Doodads\\Dungeon\\Rocks\\Cave_FieryCrator\\Cave_FieryCrator.mdl" , spellX,spellY))
call TriggerSleepAction( 2.00 )
call ForGroupBJ( g, function Trig_Mini_Volcano_Copy_Func007A )
call DestroyEffect(AddSpecialEffectTarget("Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl", u, "origin"))
call RemoveLocation (l)
set l = null
call DestroyGroup (g)
set g = null
set u = null
endfunction
//===========================================================================
function InitTrig_Mini_Volcano takes nothing returns nothing
set gg_trg_Mini_Volcano = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mini_Volcano, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Mini_Volcano, Condition( function Trig_Mini_Volcano_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Mini_Volcano, function Trig_Mini_Volcano_Copy_Actions )
endfunction