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

Spell challenge : ManaStrike

Status
Not open for further replies.
Level 3
Joined
Aug 4, 2004
Messages
22
ok i posted what i could make so far in the JASS forum.


anyway, i want this to be an ability EXACTLY like critical strike but instead of dealing double damage or whatever, it deals 50% of the attackers current mana in damage.

i dont want a trigger which runs when a unit is attacked and then tries to 'simulate' the attack swing with a suitably small wait time before applying the damage.

i want the bonus damage to be applied EXACTLY when the hit lands, just as critical strike/bash does.

ofcourse there are huge problems when you consider that the attacked unit could have evasion, could blink, could stun you during your swing etc.

as far as i know, its impossible to replicate the 'bonus effect on unit hit' event perfectly.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
You don't actually need to have the attacking unit attack again. You can have a dummy unit attack the target. :D And I don't see why you would put conditions in how to make the spell as long as the spell would work but nevermind. Wherever someone puts conditions upon the way I am supposed to do a spell I skip over that spell... :roll:
 
Level 2
Joined
Nov 12, 2004
Messages
14
i dont know jass, i can manipulate it though... but anyways, the whole thing about the bugs where once you started to attack and if you get stunned how it would bug out and still run the dummy attack, you can prevent this by making the original attack (whatever base ability you are using) just leave a buff when they are attacked, like poison damage or stunning (but make it for .01 seconds and change the art so you dont see it for that millisecond). of course the stun and/or poison damage would do any actual extra damage, they are just used to leave a buff on the unit that you attacked, then in the trigger make:

EVENT:
unit is attacked
CONDITIONS:
attacking unit = (whatever hero you are making it for)
OR
attacking unit type =(whatever type of hero you are making it for)
ACTIONS:
wait for condition (attacked unit has buff (buff id) = true


NOW you can make the dummy or whatever you want to happen.



by using a buff detection thing you can make these things work instantly once theyre attacked no matter the distance you are from them. BUT, its not error free still, but it is MORE error free than just deteting an attacking unit and waiting a bit before ordering adummy to attack.
it errors when you use 2 abilities or items that alter the attack, ie an orb of frost, because the orb of frost buff would replace the origial skill and hence it wouldnt detect it. so if you do use this buff detection method, make sure you are never using an autocast buff ability or item that would leave a buff with it.

good luck-
 
Status
Not open for further replies.
Top