Malle1
10-12-2009, 04:30 PM
So, I played around a bit to test how evasion and redirection (Zephyr's Wind Shield) affect the different triggers related to being attacked. I added an item with the following code:
<?xml version="1.0" encoding="UTF-8"?>
<item
name="Item_Attacktest"
icon="icon.tga"
cost="100"
actiontype="passive"
>
<onattackedstart>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="100" />
</areaofeffect>
<popup name="bonus_damage" a="1" />
</onattackedstart>
<onattackedpreimpact>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="200" />
</areaofeffect>
<popup name="bonus_damage" a="2" />
</onattackedpreimpact>
<onattackimpact>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="400" />
</areaofeffect>
<popup name="bonus_damage" a="4" />
</onattackimpact>
<ondamaged>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="800" />
</areaofeffect>
<popup name="bonus_damage" a="8" />
</ondamaged>
</item>
The onattackedstart, onattackedpreimpact and ondamaged part worked when attacked normally, but the onattackimpact did not. Is it the wrong event or am I doing something else wrong?
For reference, when evasion or redirection triggers, ondamaged does of course not trigger.
<?xml version="1.0" encoding="UTF-8"?>
<item
name="Item_Attacktest"
icon="icon.tga"
cost="100"
actiontype="passive"
>
<onattackedstart>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="100" />
</areaofeffect>
<popup name="bonus_damage" a="1" />
</onattackedstart>
<onattackedpreimpact>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="200" />
</areaofeffect>
<popup name="bonus_damage" a="2" />
</onattackedpreimpact>
<onattackimpact>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="400" />
</areaofeffect>
<popup name="bonus_damage" a="4" />
</onattackimpact>
<ondamaged>
<areaofeffect
radius="1000"
targetselection="all"
targetscheme="enemy_nonboss_units"
effecttype=""
>
<damage effecttype="Splash" amount="800" />
</areaofeffect>
<popup name="bonus_damage" a="8" />
</ondamaged>
</item>
The onattackedstart, onattackedpreimpact and ondamaged part worked when attacked normally, but the onattackimpact did not. Is it the wrong event or am I doing something else wrong?
For reference, when evasion or redirection triggers, ondamaged does of course not trigger.