I
IKilledKEnny
Guest
Jesus, thanks to all the pointers Andrew! It shows that I'm a begginer.
Anyway doesn't this line
add crow form?
Edit: So sorry but another problem (lol those spells were supposed to be in a released spell pack, I guess I'll have to give you all tons of credits ), anyway I'm trying to work on this spell and I just checked it and it doesn't work. I believe the bolded line is what screws it (I removed if / then / else to be sure i's not luck that does it)
Anyway doesn't this line
call UnitAddAbilityBJ( 'Arav', cast )
add crow form?
Edit: So sorry but another problem (lol those spells were supposed to be in a released spell pack, I guess I'll have to give you all tons of credits ), anyway I'm trying to work on this spell and I just checked it and it doesn't work. I believe the bolded line is what screws it (I removed if / then / else to be sure i's not luck that does it)
Code:
function Trig_Air_Shield_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B000') == true ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('ANab', GetSpellTargetUnit()) >= GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) ) ) then
return false
endif
return true
endfunction
function Trig_Air_Shield_Actions takes nothing returns nothing
local location AHLoc
local unit dum
local unit vic
local unit ref
set vic = GetSpellAbilityUnit()
set ref = GetSpellTargetUnit()
set AHLoc = GetUnitLoc(GetSpellTargetUnit())
call CreateNUnitsAtLoc( 1, 'h001', GetOwningPlayer(GetSpellTargetUnit()), AHLoc, GetUnitFacing(GetSpellTargetUnit()) )
set dum = GetLastCreatedUnit()
call UnitAddAbilityBJ( GetSpellAbilityId(), dum )
call SetUnitAbilityLevelSwapped( GetSpellAbilityId(), dum, GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit()) )
call TriggerSleepAction (1.00)
call SetUnitAnimation( ref, "cast" )
[B] call IssueTargetOrderBJ( dum, AbilityId2String(GetSpellAbilityId()), vic)[/B]
endfunction
//===========================================================================
function InitTrig_Air_Shield takes nothing returns nothing
set gg_trg_Air_Shield = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Air_Shield, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Air_Shield, Condition( function Trig_Air_Shield_Conditions ) )
call TriggerAddAction( gg_trg_Air_Shield, function Trig_Air_Shield_Actions )
endfunction