I hate its guts more than a fat man hates dieting.whats your problem with the periodic event?
I hate its guts more than a fat man hates dieting.whats your problem with the periodic event?
I hate the fact that it keeps on blindly firing in the background; it's complete overkill, like trying to destroy a run-down building by nuking the whole country to pieces!
Why is it spam? We're discussing a problem in a civilized and intelligent manner!Can someone solve this is a little annoying to see this at the top of the list xD Right now its just become spam.
The original ability belongs to the "Runed Bracers" item. I'd have to test it to see if it decreases incoming heals, but I doubt it since the bracers aren't a cursed item - they should help the wearer mitigate incoming hostile magics, not friendly spells.@Jinx: I dont know, does the original ability decrease the effect of healing magic? maybe there is a field like "targets allowed", i didnt used that ability that much.
- unit enters range of an enemy hero posessing the magic-resist decreasing aura (aura level > 0)
- give the entering unit the negative magic resistance ability and level it to the aura's level
- start a repeatable timer that will expire within 1.0x[Level of Aura] seconds
- store the entering unit and the enemy aura owner into a hashtable
- when timer expires, check to see if the victim with the decreased magic resistance is still within range of the aura's owner
- if yes, then do nothing and wait for the next timer expiration (meaning the aura buff would be refreshed if this were a normal aura)
- if not, then remove the negative magic resistance ability from the victim, stop the timer, do cleanup
Trigger1
Event
Unit come into x range of AuraHero
Condition
(triggering Unit) got Buff MyAuraBuff == false
Action
Add (triggering Unit) to BuffedUnitGroup
set BuffedUnitCounter = BuffedUnitCounter +1
Trigger2
Event
Every 0.1 seconds
Condition
BuffedUnitCounter > 0
Action
pick all units within BuffedUnitGroup
loop actions
if Conditions
distance between (picked unit) and AuraHero > xxx
Then
Remove MyAuraBuff from (picked unit)
Remove (picked unit) from BuffedUnitGroup
set BuffedUnitCounter = BuffedUnitCounter -1
Else