I got this weird bug on damage function (Unit - Damage Target)
It doesn't deal any damage on idle units. If a unit is just standing
[trigger=Smite]Smite
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Paladin - Smite
Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 100.00 damage of attack type Spells and damage type Magic
Unit - Cause (Target unit of ability being cast) to damage (Triggering unit), dealing 100.00 damage of attack type Spells and damage type Magic
[/trigger]
I first noticed it one of my abilities then i made up the code above to test if it is really not working.
If i cast that ability on an idle unit (eg. peasant who do not auto attack), no damage will be dealt to the caster and to the target regardless of the code.
Then if I attack that unit before casting the spell, the damage will go through, until it stops fleeing and becomes idle again.
I tried it on normal units (non-worker type like footman) and still it does not deal any damage unless an attack is successfully made.
I also tried disabling my damage detection system but there was no difference.
The question is... why is this happening?
It doesn't deal any damage on idle units. If a unit is just standing
[trigger=Smite]Smite
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Paladin - Smite
Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 100.00 damage of attack type Spells and damage type Magic
Unit - Cause (Target unit of ability being cast) to damage (Triggering unit), dealing 100.00 damage of attack type Spells and damage type Magic
[/trigger]
I first noticed it one of my abilities then i made up the code above to test if it is really not working.
If i cast that ability on an idle unit (eg. peasant who do not auto attack), no damage will be dealt to the caster and to the target regardless of the code.
Then if I attack that unit before casting the spell, the damage will go through, until it stops fleeing and becomes idle again.
I tried it on normal units (non-worker type like footman) and still it does not deal any damage unless an attack is successfully made.
I also tried disabling my damage detection system but there was no difference.
The question is... why is this happening?
