- Joined
- Jan 14, 2008
- Messages
- 366
none of the effects take place, but event and conditions look flawless...
JASS:
function Trig_barbarian_knight_crippling_strike_Copy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSpellAbilityUnit()) == 'H000' ) ) then
return false
endif
if ( not ( GetSpellAbilityId() == 'A004' ) ) then
return false
endif
return true
endfunction
function Trig_barbarian_knight_crippling_strike_Copy_Actions takes nothing returns nothing
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) - ( I2R(GetUnitAbilityLevelSwapped('A004', GetSpellAbilityUnit())) * 50.00 ) ) )
call AddSpecialEffectLocBJ( GetUnitLoc(GetSpellTargetUnit()), "Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl" )
call PlaySoundOnUnitBJ( gg_snd_MetalHeavySliceStone2, 100.00, GetSpellTargetUnit() )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_barbarian_knight_crippling_strike_Copy takes nothing returns nothing
set gg_trg_barbarian_knight_crippling_strike_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_barbarian_knight_crippling_strike_Copy, EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddCondition( gg_trg_barbarian_knight_crippling_strike_Copy, Condition( function Trig_barbarian_knight_crippling_strike_Copy_Conditions ) )
call TriggerAddAction( gg_trg_barbarian_knight_crippling_strike_Copy, function Trig_barbarian_knight_crippling_strike_Copy_Actions )
endfunction
Last edited by a moderator: