Strange Code Speaking..

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:

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
 

Chaos_Knight

New Member
Reaction score
39
Forgot those.. And i have highlitning on them too.. Shame on me..
+rep.

EDIT: "You have gaven out too much the latest 24 hours. Try again later"...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top