// A0J1 = Chronosphere function Trig_FacelessVoid_Spell_Chronosphere_Conditions takes nothing returns boolean if(not (GetSpellAbilityId()=='A0J1'))then return false endif return true endfunction // EC45 = Faceless Void function OHOH takes nothing returns nothing if(GetUnitTypeId(GetEnumUnit())!='EC45')then call PauseUnit(GetEnumUnit(),true) call SetUnitTimeScalePercent(GetEnumUnit(),.0) call UnitRemoveAbility(GetEnumUnit(),'BUsl') call UnitRemoveAbility(GetEnumUnit(),'BUsp') call UnitRemoveAbility(GetEnumUnit(),'BUst') endif endfunction function OiOi takes nothing returns nothing call PauseUnit(GetEnumUnit(),false) call SetUnitTimeScalePercent(GetEnumUnit(),100.) endfunction // A0J1 = Chronosphere // u00L = ChronoSphere function Trig_FacelessVoid_Spell_Chronosphere_Actions takes nothing returns nothing local integer JJJ=GetUnitAbilityLevel(GetTriggerUnit(),'A0J1') local unit Ojj local real e99=1.5+(JJJ*1.5) local timer OJJ local location Okk=GetSpellTargetLoc() local group OKK local group fAA call CreateNUnitsAtLoc(1,'u00L',GetOwningPlayer(GetSpellAbilityUnit()),Okk,bj_UNIT_FACING) set Ojj=bj_lastCreatedUnit call PolledWait(.5) call SetUnitTimeScalePercent(Ojj,.0) set OKK=GetUnitsInRangeOfLocAll(425.,Okk) set OJJ=CreateTimer() call StartTimerBJ(OJJ,false,e99) call ForGroup(OKK,function OHOH) loop exitwhen TimerGetRemaining(OJJ)<=.0 set fAA=GetUnitsInRangeOfLocAll(425.,Okk) call GroupAddGroup(fAA,OKK) call DestroyGroup(fAA) call ForGroup(OKK,function OHOH) if(TimerGetRemaining(OJJ)<.8)then call PolledWait(.1) else call PolledWait(.5) endif endloop call RemoveUnit(Ojj) call ForGroupBJ(OKK,function OiOi) call DestroyGroup(OKK) call PauseTimer(OJJ) call PolledWait(.01) call DestroyTimer(OJJ) call RemoveLocation(Okk) endfunction function StartTrigger_FacelessVoid_Spell_Chronosphere takes nothing returns nothing set gg_trg_FacelessVoid_Spell_Chronosphere=CreateTrigger() call TriggerRegisterAnyUnitEventBJ(gg_trg_FacelessVoid_Spell_Chronosphere,EVENT_PLAYER_UNIT_SPELL_EFFECT) call TriggerAddCondition(gg_trg_FacelessVoid_Spell_Chronosphere,Condition(function Trig_FacelessVoid_Spell_Chronosphere_Conditions)) call TriggerAddAction(gg_trg_FacelessVoid_Spell_Chronosphere,function Trig_FacelessVoid_Spell_Chronosphere_Actions) endfunction function InitTrig_FacelessVoid_Spell_Chronosphere takes nothing returns nothing endfunction