• 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.

[JASS] Detecting buff on unit

Status
Not open for further replies.
Hey, there. I have this in a damage detection trigger:

JASS:
    if GetUnitAbilityLevel(GetTriggerUnit(),'B016')>0 then //Captains Cannon
        call UnitRemoveAbility(GetTriggerUnit(),'B016')
        call floatingTextSizeIncrease("Captains Cannon!",GetUnitLoc(GetTriggerUnit()))
    endif

What ability should I base it on? It needs to deal damage and give a buff for about 1 second without stunning.
 
Level 4
Joined
Feb 25, 2008
Messages
58
Base it off of rejuvenation but give it negative regen and make it only castable on enemy units. Make the duration 1 second and the heal (damage) frequency .8 seconds and make the heal (damage) amount equal to the damage you want to deal. Change the art to whatever you want and voila.
 
Level 4
Joined
Feb 25, 2008
Messages
58
Shadow strike has a projectile, and I'm sure you could mess around with the data fields a little bit so that you don't have any periodic damage and it doesn't slow. Then the only thing that would stick out is the initial damage has a little number (like 200!) that floats up when the projectile hits, but that might be cool with you?

If you're still against that, then you can have the ability be chain lightning and have a trigger that makes a dummy unit cast a separate spell that has a buff on the target of the chain lightning ability.

Hope that helps?
 
Status
Not open for further replies.
Top