[Request] New Passive Ability

GameOver[GR]

New Member
Reaction score
11
i am new here and i also do not know much Jass so i need help here.

The ability i want to make is: when the hero dies ONLY ENEMY UNITS within 400 area of effect damage them for 350 damage.

When i tried to make it this way i found how to do it but the spell was damaging hero's allies too.

Thanks for helping :)
 

Dryvnt

New Member
Reaction score
10
DON'T USE THIS CODE! IT MIGHT LEAK! AND IT MIGHT NOT WORK! USE LOCAL/GLOBAL VARIABLES AND NULLING WITH THIS IF YOU WANT TO USE IT! AND IT DOESENT COME WITH EVENTS AND SUCH!

JASS:
function groupCondition takes nothing returns boolean
return IsPlayerEnemy(GetOwningPlayer(GetTriggerUnit()), GetOwningPlayer(GetFilterUnit()))
endfunction

function groupActions takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetTriggerUnit(), 350, ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
endfunction

function Actions takes nothing returns nothing
//local declaring and other actions
call ForGroup(GetUnitsInRangeOfLocMatching(400.00,  GetUnitLoc(GetTriggerUnit()), Condition(function groupCondition)), (function groupActions)
//more actions and nulling
endfunction
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Why do you bother to make the code if he's not supposed to use it?
 

Dryvnt

New Member
Reaction score
10
Im telling him to edit the code and not just use it raw... Might not have explained what i meant so well :/
 
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