Ozzapoo wrote:
Aero wrote:
Only trouble is this will pretty much cause instant lock-up from leaks.
What do you mean

?
Just look at that code and think about what it does...It will consume all your RAM nearly instantly and bog down your OS to the point where you might have to reboot your comp.
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.
I can do this for you NP but I need to know what kind of spells are to be "mirrored back".
I'm assuming it's just unit-targetted spells (and nothing triggered?).
Do I need to include channelled spells? (Such as life drain)?
If a spell costs 500 mana to cast and the target has 100 mana,is the spell reflected? Does it cost mana?
Do spells with a casting time become instant cast?
Does the ability appear on the unit and then the unit casts it or does the target just cast it?
Do targetted abilities like "Kaboom" which suicide the caster apply? (If you try to reflect Kaboom, do you suicide)? (Does it reflect)?
I need information like this before I can try to work something out.
666 posts btw!