Is there something in the game's code that prevents buildings from being affected by auras? I ask because I am attempting to recreate the Pylon energy field system used by Protoss, and I want to use an aura to represent the Pylon's area of influence.
I am using Ancient as the building type, to prevent them from being targeted by Repair. I have as the targets allowed for the Aura "Ancient, Invulnerable, Not Self, Player Units, Structure, Vulnerable." When I put an Ancient building near the Pylon, that building doesn't receive the aura.
At first, I based the custom aura on Brilliance Aura. When that didn't work, I thought it was because Brilliance Aura doesn't affect units without mana. Then I tried Unholy Aura as the base. When that didn't work I figured it was because buildings can't move (movement speed bonus of Unholy Aura). Now I've tried Thorns Aura, which shouldn't have any similar problems, and that still doesn't work. I've even checked if setting the stats fields such as HP regen bonus or damage returned to zero was the cause, but, no, it still doesn't work even if those fields are non-zero.
Of course, there is a way to do this with triggers checking the distance buildings are from a Pylon instead, but I wanted to use an aura. Am I doing something wrong or is that just impossible?
I am using Ancient as the building type, to prevent them from being targeted by Repair. I have as the targets allowed for the Aura "Ancient, Invulnerable, Not Self, Player Units, Structure, Vulnerable." When I put an Ancient building near the Pylon, that building doesn't receive the aura.
At first, I based the custom aura on Brilliance Aura. When that didn't work, I thought it was because Brilliance Aura doesn't affect units without mana. Then I tried Unholy Aura as the base. When that didn't work I figured it was because buildings can't move (movement speed bonus of Unholy Aura). Now I've tried Thorns Aura, which shouldn't have any similar problems, and that still doesn't work. I've even checked if setting the stats fields such as HP regen bonus or damage returned to zero was the cause, but, no, it still doesn't work even if those fields are non-zero.
Of course, there is a way to do this with triggers checking the distance buildings are from a Pylon instead, but I wanted to use an aura. Am I doing something wrong or is that just impossible?