/N000 - 3OM6U 6LU]I[HEGO 6O9
//ANB2 - CTAH
//N001 - 6AHbIIIN dAJIHEGO 6O9
//ACCT - KRITICA; STRIKE function Trig_Cast_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AEme' ) ) then
return false
endif
return true
endfunction
function Trig_Cast_Func003Func001C takes nothing returns boolean
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_MELEE_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Cast_Func003A takes nothing returns nothing
if ( Trig_Cast_Func003Func001C() ) then
call CreateNUnitsAtLoc( 1, 'n000', GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), GetUnitFacing(GetEnumUnit()) )
call SetUnitLifeBJ( GetLastCreatedUnit(), ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetEnumUnit()) + 200.00 ) )
call UnitAddAbilityBJ( 'ANb2', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "overhead", GetEnumUnit(), "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set F = GetLastCreatedEffectBJ()
call KillUnit( GetEnumUnit() )
call DestroyEffectBJ(F)
call UnitApplyTimedLifeBJ( 40.00, 'BFig', GetLastCreatedUnit() )
else
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), GetUnitFacing(GetEnumUnit()) )
call SetUnitLifeBJ( GetLastCreatedUnit(), ( GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetEnumUnit()) + 200.00 ) )
call UnitAddAbilityBJ( 'ACct', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "overhead", GetEnumUnit(), "Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl" )
set F = GetLastCreatedEffectBJ()
call KillUnit( GetEnumUnit() )
call DestroyEffectBJ(F)
call UnitApplyTimedLifeBJ( 40.00, 'BFig', GetLastCreatedUnit() )
endif
endfunction
function Trig_Cast_Actions takes nothing returns nothing
local effect F
call SetTerrainTypeBJ( GetRectCenter(RectFromCenterSizeBJ(GetUnitLoc(GetSpellAbilityUnit()), 400.00, 400.00)), 'Cpos', -1, 1, 0 )
call ForGroupBJ( GetUnitsInRectAll(RectFromCenterSizeBJ(GetUnitLoc(GetSpellAbilityUnit()), 400.00, 400.00)), function Trig_Cast_Func003A )
endfunction
//===========================================================================
function InitTrig_Cast takes nothing returns nothing
set gg_trg_Cast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Cast, Condition( function Trig_Cast_Conditions ) )
call TriggerAddAction( gg_trg_Cast, function Trig_Cast_Actions )
endfunction
з.ы ЭТО тот спелл на жассе. Просто встась себе в карту, и измени значения, указанные выше