• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[JASS] Is there a Problem here?

Status
Not open for further replies.
Level 10
Joined
Jan 24, 2009
Messages
606
Here is the Code, I tried to make my vJASS Spell to use Timers, so I made a Loop_Action trigger.
here's the Code:
JASS:
private function Loop_Action takes group whatGroup, unit caster, unit target, string Effect1, string Effect2, real x, real y, returns nothing 
    call GroupEnumUnitsInRange( whatGroup, x, y, 125., null)
    call DestroyEffect(AddSpecialEffect( Effect1, x, y)
    call DestroyEffect(AddSpecialEffect(Effect2, x, y)
    set target = FirstOfGroup(whatGroup)
    if IsUnitAlly(target, GetOwningPlayer(caster)) then
        call SetWidgetLife(target, GetWidgetLife(target) + Heal(level))
    else
        call UnitDamageTarget(caster, target, Loopdam(level), true, false, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_NORMAL, null)
    endif
endfunction
 
Status
Not open for further replies.
Top