| 01-16-2006, 02:54 PM | #1 |
I have an abillity based on divine shield, only that the unit is not allowed to attack. He can still move, but if he does so, then the effect of the divine shield is lost. the unit is ranged. The part with the movement was easy to do, the hard part is the attack stuff. I tried to use an dummy unit casting silence on the unit that has the divine sheild, but since he is immune to magic at the time it does not work. any other ways? (i tried searching and found many posts with the same problem but none gave an solution) |
| 01-16-2006, 03:06 PM | #2 |
Banish spell prevents attacking. If it is possible to make a banish spell which is allowed to target invulnerable and spell immune units, then its your solution. Also AFAIK Bladestorm spell prevents attacking. You can set 0 damage and add invulnerability via triggers. Actually i think that will be much better for you, because bladestorm is self-targeted spell which is undispellable too. If that fails, you can just set some stupid high attack speed reduction :/ |
| 01-16-2006, 03:25 PM | #3 |
To solve your Silence problem - add Invulnerable to the Alowed Targets field in the Silence ability. |
| 01-18-2006, 08:03 PM | #4 |
Do you want him to be able to attack and break the spell, or is it a timed effect so that he cannot attack. If it's timed, couldn't you remove the command to attack? Similar to how people remove Amov so units can't move. Unfortunately I don't know the script/jass code to do this, exactly, but I'm sure someone does... :X |
| 01-18-2006, 08:28 PM | #5 |
Once you remove 'Amov' you cant add it back Cast drunken haze with the "Attacks Disabled" field set to "Melee, Ranged" on the unit, make sure to set Area of Effect to 0. |
| 01-18-2006, 08:31 PM | #6 | |
Quote:
Oh, don't I feel dumb :x Your solution is much cleaner anyways... sometimes so hard to figure out which spells have fields for the things you need to do >.> |
| 01-18-2006, 10:24 PM | #7 |
actually the easiest solution is to add an ability called Cargo Hold (orc burrow) to the unit, that disables attack until you remove that ability |
| 01-19-2006, 07:43 AM | #8 | |
Quote:
Thanks, I'll use this one! Thanks for all the other suggestions though. |
