| 02-22-2007, 10:00 PM | #1 |
On spells such as Imnolation and autocast spells, Would JASS:EVENT_PLAYER_UNIT_SPELL_EFFECT |
| 02-23-2007, 02:04 AM | #2 |
You could've tested this yourself, you know... And no, it only fires when cast manually. It does not fire when you right-click the spell to turn on the "autocast" feature, nor does it fire when the unit uses the spell via autocast. I tested it with searing arrows, but I know that Immolation triggers that when turned on, though the only way to tell when it's turned off is to detect when the unit is ordered to "unimmolation". |
| 02-23-2007, 01:56 PM | #3 |
Most autocastable spells work either if cast by the player manually or triggered by the unit. Exceptions make attack-modifiers, which include Searing Arrow, Black Arrow and Freezing Arrow (mostly arrow abilities :P), as they are triggered at ATTACK, and not when the spell is actually cast. About toggleable abilities, yes, you need to track the order. They are not actually "cast" but "activated". That's the main difference between normal and toggleable abilities. It's about the way Blizzard coded them natively. ~Daelin |
| 02-23-2007, 11:36 PM | #4 |
if the arrows the "attacks" then how would i make the condition to check if the spell is autocasted? |
| 02-24-2007, 12:18 AM | #5 |
By "autocasted", do you mean when the ability is actually used, or when the player right-clicks the button. For the latter, just check to see when a unit is ordered to (in the case of flaming arrows) "flamingarrows" or "unflamingarrows". |
