I made a rough sample... I assume it's what you're looking for.grand wrote:Passive Ability: 10% chance that whenever an enemy unit casts an spell on unit with ability A, that unit will cast the same spell back on the enemy.
How do I script the spells part in Jass? The only part I can write is the chance part which I can easily read.
So far, I have the reflect ability based off of Pulverize (0% chance) and reflect chance is currently 50%.
-Spell will reflect friendly spells (ex: Pallies Healing Light).
-Spell reflect persists through silencing effects (Silence or soul burn)
-Reflect has not been configured for channeled spells or spells with a casting time (They will work but will look odd...)
-Reflect costs no mana and has no mana limitations
-Spells like Kaboom which suicide the caster will not cause the target to suicide (Not tested yet... in fact I dont even know if Kaboom is reflectable)
Enjoy