Chaos_Knight
New Member
- Reaction score
- 39
I sat here fixing my spell, i used used the function [ljass]Damage_IsAttack()[/ljass]
by Damage. But when i used it Jasshelper says
"Cannot convert integer to boolean", on this code:
by Damage. But when i used it Jasshelper says
"Cannot convert integer to boolean", on this code:
JASS:
private function Cons takes nothing returns boolean
return IsUnitEnemy(GetTriggerUnit() , GetOwningPlayer(GetEventDamageSource())) /*
*/and GetRandomInt(0, 100) <= CHANC(GetUnitAbilityLevel(GetEventDamageSource(), ID)) /*
*/and not IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) /*
*/and GetUnitAbilityLevel(GetEventDamageSource() , ID) > 0 /*
*/and Damage_IsAttack
endfunction