- Joined
- Oct 18, 2007
- Messages
- 930
ok here is my dum code
+
So why does not the BJDebugMsg show up?? what did i do wrong?? some help please
JASS:
function Demonic_Fists_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A00C'
endfunction
function Demonic_Fists_Actions takes nothing returns nothing
local unit cast
call UnitAddAbility(cast,'A00D')
call UnitAddAbility(cast,'A00G')
call UnitAddAbility(cast,'A00E')
call SetUnitAbilityLevelSwapped( 'A00D', cast, GetUnitAbilityLevelSwapped('A00C', cast) )
call SetUnitAbilityLevelSwapped( 'A00G', cast, GetUnitAbilityLevelSwapped('A00C', cast) )
call SetUnitAbilityLevelSwapped( 'A00E', cast, GetUnitAbilityLevelSwapped('A00C', cast) )
if GetBooleanAnd(GetUnitAbilityLevelSwapped('A00D', cast) > 1,GetBooleanAnd(GetUnitAbilityLevelSwapped('A00G', cast) > 1,GetUnitAbilityLevelSwapped('A00E', cast) > 1)) then
call BJDebugMsg("All abilities Good")
endif
set cast = null
endfunction
//===========================================================================
function InitTrig_Demonic_Fists takes nothing returns nothing
local trigger T = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( T, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( T, Condition( function Demonic_Fists_Conditions ) )
call TriggerAddAction( T, function Demonic_Fists_Actions )
set T = null
endfunction
+
JASS:
function Demonic_Fists_Remove_Conditions takes nothing returns boolean
return GetIssuedOrderIdBJ() == String2OrderIdBJ("unimmolation")
endfunction
function Demonic_Fists_Remove_Actions takes nothing returns nothing
local unit cast = GetOrderedUnit()
if GetUnitAbilityLevelSwapped('A00C', cast) > 1 then
call UnitRemoveAbility(cast,'A00D')
call UnitRemoveAbility(cast,'A00G')
call UnitRemoveAbility(cast,'A00E')
endif
set cast = null
endfunction
//===========================================================================
function InitTrig_Demonic_Fists_Remove takes nothing returns nothing
local trigger T = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( T, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( T, Condition( function Demonic_Fists_Remove_Conditions ) )
call TriggerAddAction( T, function Demonic_Fists_Remove_Actions )
endfunction
So why does not the BJDebugMsg show up?? what did i do wrong?? some help please