I'm trying to make a spell that amplifies magical damage(not physical). So, i decided to use runed bracer(ability = Spell damage reduction) to negative value, and In trigger, I gave the negative value spell damage reduction skill to the picked units that are in area of my amplifying skill, but in game, when i cast my amplifying spell, it causes horrendous lags. Is there any better way to create amplifying spell damage skill in area? or something is wrong with my trigger that causes lag?
Please take a look..thanks!
Trigger:
- Amplification
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Amplify spell damage
- Actions
- Set Temp_Group1 = (Units within 300.00 of (Target point of ability being cast) matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
- Unit Group - Pick every unit in Temp_Group1 and do (Actions)
- Loop - Actions
- Unit - Add Voodoo Amplification dummy to (Picked unit)
- Countdown Timer - Start Timer1 as a One-shot timer that will expire in 10.00 seconds
- Custom script: call DestroyGroup(udg_Temp_Group1)
- Loop - Actions
- Events
Trigger:
- Voodoo Amplification Copy
- Events
- Time - Timer1 expires
- Conditions
- Actions
- Set Temp_Group1 = (Units within 300.00 of (Target point of ability being cast) matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) has buff Amplified ) Equal to True)))
- Unit Group - Pick every unit in Temp_Group1 and do (Actions)
- Loop - Actions
- Unit - Remove Amplify spell damage from (Picked unit)
- Custom script: call DestroyGroup(udg_Temp_Group1)
- Loop - Actions
- Events
Please take a look..thanks!