- Joined
- Dec 10, 2008
- Messages
- 850
So as of late I've been converting alot of my map into JASS from GUI, but after I just finished re-coding 2 spells and trying to do another, I get an error from something that has never errored before. The best part? Its a freaking GUI thing, and its super crazy simple, but I cant see why NewGen is flagging it as an error....
The condition line errors everytime
Whats going on with this?
JASS:
function Trig_FlameThrower_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttacker()) == 'h004' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetAttacker()) == 'H00D' ) ) then
return false
endif
return true
endfunction
function Trig_FlameThrower_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "weapon", GetAttacker(), "war3mapImported\\Konstrukt_FlameThrowerEffektAttachment.MDX" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
-
FlameThrower
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to FlameThrower
- (Unit-type of (Attacking unit)) Equal to ABEM Flame
-
Actions
- Special Effect - Create a special effect attached to the weapon of (Attacking unit) using war3mapImported\Konstrukt_FlameThrowerEffektAttachment.MDX
- Special Effect - Destroy (Last created special effect)
-
Events