Hi guys, here I come with a spiky problem..
I got a map where 90% of my spells are triggered. And, due to the gameplay, I can't change that.
I just created an item similar to the Spell block amulet.
Here comes the problem : The amulet blocks the spell, but not the effects contained in the trigger ! I knew it but I thought I could find an answer on those forums. Actually not.
For example :
My Hero got the spell Fire dart. It's based on Storm bolt and just do a mini stun. Here's the trigger :
I just want now to do something like that :
Unfortunately, there's no buff at all with this item... And I have NO way to detect if the amulet is up or not.
So here's my wish : I want to detect if the amulet is up, andd if yes, counter the triggered effects (Here : damages) while the buff will wipe out the effective spell (Here : Storm bolt).
Please you guys got an idea?
I got a map where 90% of my spells are triggered. And, due to the gameplay, I can't change that.
I just created an item similar to the Spell block amulet.
Here comes the problem : The amulet blocks the spell, but not the effects contained in the trigger ! I knew it but I thought I could find an answer on those forums. Actually not.
For example :
My Hero got the spell Fire dart. It's based on Storm bolt and just do a mini stun. Here's the trigger :
Trigger:
- Fire dart
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Fire dart
- Actions
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (5.00 x (Real((Intelligence of (Casting unit) (Include bonuses))))) damage of attack type Spells and damage type Fire
- Events
I just want now to do something like that :
Trigger:
- Fire dart
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Fire dart
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Target unit of ability being cast) has buff Spell shield ) Equal to True
- Then - Actions
- Do nothing
- Else - Actions
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (5.00 x (Real((Intelligence of (Casting unit) (Include bonuses))))) damage of attack type Spells and damage type Fire
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Unfortunately, there's no buff at all with this item... And I have NO way to detect if the amulet is up or not.
So here's my wish : I want to detect if the amulet is up, andd if yes, counter the triggered effects (Here : damages) while the buff will wipe out the effective spell (Here : Storm bolt).
Please you guys got an idea?