WoW:API SpellStopCasting: Difference between revisions

m
Move page script moved page API SpellStopCasting to WoW:API SpellStopCasting without leaving a redirect
No edit summary
m (Move page script moved page API SpellStopCasting to WoW:API SpellStopCasting without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Stops the current spellcasting. Doesn't work for channeled spells.<br>
{{wowapi}} __NOTOC__
Returns nil if it didn't do anything (no spell was being cast at the moment), 1 if it did stop a casting.
{{protectedapi|2.0.1|For alternatives, try [[API_SecureTemplates|Secure Templates]] or the new [[Conditional slash commands#/stopcasting|/stopcasting]].}}


Can disable autorepeated "spells", like hunter's Auto shot.
Stops the current spellcasting. Doesn't work for channeled spells.
 
SpellStopCasting()
 
== Parameters ==
 
=== Arguments ===
:;none
 
=== Returns ===
:;nil
:: It didn't do anything (no spell was being cast at the moment).
:;1
:: If it did stop a casting.
 
== Examples ==


A recent post from the WoW main boards suggests that you can link two or more spells/abilities to fire from the same macro press (and that this move is legal) as long as none of the abilities (except the last one) triggers the global cooldown.
A recent post from the WoW main boards suggests that you can link two or more spells/abilities to fire from the same macro press (and that this move is legal) as long as none of the abilities (except the last one) triggers the [[global cooldown]].


This is done with the following simple setup (two spells in one macro).
This is done with the following simple setup (two spells in one macro).


<pre>/cast Spell Without Global Cooldown
/cast Spell Without Global Cooldown
/script SpellStopCasting()
/script SpellStopCasting()
/cast Spell With Global Cooldown</pre>
/cast Spell With Global Cooldown


Or, for more than two spells.
Or, for more than two spells.


<pre>/cast Spell Without Global Cooldown
/cast Spell Without Global Cooldown
/script SpellStopCasting()
/script SpellStopCasting()
/cast Spell Without Global Cooldown
/cast Spell Without Global Cooldown
/script SpellStopCasting()
/script SpellStopCasting()
...
...
/cast Spell With Global Cooldown</pre>
/cast Spell With Global Cooldown


It's been tested to work with Nature's Swiftness (Shaman/Druid), Divine Favor (Paladin), Inner Focus + Focused Casting (Priest), but should work for any ability that does not have a global cooldown attached.
It's been tested to work with Nature's Swiftness (Shaman/Druid), Divine Favor (Paladin), Inner Focus + Focused Casting (Priest), but should work for any ability that does not have a global cooldown attached.
Line 27: Line 42:


This has been tested with a "Inner Focus"/"Prayer of Healing" (Priest) macro, which will activate the inner focus but say "not enough mana" if you don't have enough mana for the healing spell.
This has been tested with a "Inner Focus"/"Prayer of Healing" (Priest) macro, which will activate the inner focus but say "not enough mana" if you don't have enough mana for the healing spell.
==Details==
Can disable autorepeated "spells", like hunter's Auto shot.
[[Category:World of Warcraft API]]
Anonymous user