<?xml version="1.0" encoding="ISO-8859-1"?>
<wgp sitename="WoW Guru" url="http://www.wowguru.com/ui/">
	<file name="AfterCast" author="Iriel" email="" url="" currentversion="0.4-10900">
		<description>AfterCast - Perform action after a cast&lt;br /&gt;
---------------------------------------------------------------------------&lt;br /&gt;
This is a fairly simple addon for performing actions based on the success&lt;br /&gt;
or failure of a cast. Usage is as follows&lt;br /&gt;
&lt;br /&gt;
/aftercast /smile&lt;br /&gt;
/aftercast +fail /cry&lt;br /&gt;
/cast Frostbolt(Rank 2)&lt;br /&gt;
&lt;br /&gt;
For this example, if the spell succeeds then you'll smile, if it&lt;br /&gt;
fails, then you'll cry. If it is interrupted then nothing will happen.&lt;br /&gt;
&lt;br /&gt;
Events you can use are:&lt;br /&gt;
&lt;br /&gt;
+done        At the end of successful casting (Default if no event given)&lt;br /&gt;
+fail        If the spell fails&lt;br /&gt;
+interrupt   If the spell is interrupted&lt;br /&gt;
+start       When spell starts casting (Fires before done for instant spells)&lt;br /&gt;
&lt;br /&gt;
Aftercasts apply to the next spell which occurs, and then is reset, you can&lt;br /&gt;
set up one of each event before each cast.&lt;br /&gt;
&lt;br /&gt;
These functions can also be gotten at via lua functions&lt;br /&gt;
&lt;br /&gt;
AfterCast(doneAction, failAction);&lt;br /&gt;
   Shortcut to set up the 2 most common actions, either can be nil.&lt;br /&gt;
&lt;br /&gt;
AfterCastOn(event, action)&lt;br /&gt;
   Set up a specific action (use without the +, so &amp;quot;done&amp;quot;, &amp;quot;fail&amp;quot;, etc)&lt;br /&gt;
&lt;br /&gt;
AfterCastReason([clearFlag])&lt;br /&gt;
   Return the stop reason (&amp;quot;done&amp;quot;/&amp;quot;interrupt&amp;quot;/&amp;quot;fail&amp;quot;) for the last cast&lt;br /&gt;
   (nil if none have stopped since the last clear).. if clearFlag is&lt;br /&gt;
   present and true then resets status after return.</description>
		<category id="38" />
		<version number="0.4-10900" date="January 5 2006">
			<file url="/ui/archives/aftercast-201-0410900.zip" />
		</version>
	</file>
</wgp>
