<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://datoolset.net/mw/index.php?action=history&amp;feed=atom&amp;title=Combat_HandleAttackImpact</id>
		<title>Combat HandleAttackImpact - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://datoolset.net/mw/index.php?action=history&amp;feed=atom&amp;title=Combat_HandleAttackImpact"/>
		<link rel="alternate" type="text/html" href="http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;action=history"/>
		<updated>2026-06-30T14:39:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.6</generator>

	<entry>
		<id>http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16876&amp;oldid=prev</id>
		<title>Sunjammer: Fixing category</title>
		<link rel="alternate" type="text/html" href="http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16876&amp;oldid=prev"/>
				<updated>2011-08-07T14:31:40Z</updated>
		
		<summary type="html">&lt;p&gt;Fixing category&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:31, 7 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L244&quot; &gt;Line 244:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 244:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/dascript&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/dascript&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Category: &lt;/del&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Combat_H&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Category:Functions from combat_h&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sunjammer</name></author>	</entry>

	<entry>
		<id>http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16541&amp;oldid=prev</id>
		<title>Mouser9169 at 05:57, 1 August 2011</title>
		<link rel="alternate" type="text/html" href="http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16541&amp;oldid=prev"/>
				<updated>2011-08-01T05:57:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 05:57, 1 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L6&quot; &gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Variables:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Variables:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Returns:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Used for:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Used for:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mouser9169</name></author>	</entry>

	<entry>
		<id>http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16527&amp;oldid=prev</id>
		<title>Mouser9169 at 05:30, 1 August 2011</title>
		<link rel="alternate" type="text/html" href="http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16527&amp;oldid=prev"/>
				<updated>2011-08-01T05:30:01Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 05:30, 1 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Called by:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Called by:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Calls:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parameters:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parameters:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mouser9169</name></author>	</entry>

	<entry>
		<id>http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16513&amp;oldid=prev</id>
		<title>Mouser9169 at 05:02, 1 August 2011</title>
		<link rel="alternate" type="text/html" href="http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16513&amp;oldid=prev"/>
				<updated>2011-08-01T05:02:09Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;amp;diff=16513&amp;amp;oldid=16512&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Mouser9169</name></author>	</entry>

	<entry>
		<id>http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16512&amp;oldid=prev</id>
		<title>Mouser9169: Created page with &quot;Called by:  Parameters:  Variables:  Used for: &lt;dascript&gt; /** *  @brief Handles processing an Attack Command * *  @param oAttacker       The command owner, usually OBJEC_TSE *  @...&quot;</title>
		<link rel="alternate" type="text/html" href="http://datoolset.net/mw/index.php?title=Combat_HandleAttackImpact&amp;diff=16512&amp;oldid=prev"/>
				<updated>2011-08-01T04:56:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Called by:  Parameters:  Variables:  Used for: &amp;lt;dascript&amp;gt; /** *  @brief Handles processing an Attack Command * *  @param oAttacker       The command owner, usually OBJEC_TSE *  @...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Called by:&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
Variables:&lt;br /&gt;
&lt;br /&gt;
Used for:&lt;br /&gt;
&amp;lt;dascript&amp;gt;&lt;br /&gt;
/**&lt;br /&gt;
*  @brief Handles processing an Attack Command&lt;br /&gt;
*&lt;br /&gt;
*  @param oAttacker       The command owner, usually OBJEC_TSE&lt;br /&gt;
*  @param oTarget         The Target of the command&lt;br /&gt;
*  @param nCommandId      The command Id&lt;br /&gt;
*  @param nCommandSubType The command subtype&lt;br /&gt;
*&lt;br /&gt;
*  @returns COMBAT_RESULT_* constant&lt;br /&gt;
*&lt;br /&gt;
*  @author Georg Zoeller&lt;br /&gt;
**/&lt;br /&gt;
int  Combat_HandleCommandAttack(object oAttacker, object oTarget, int nCommandSubType);&lt;br /&gt;
int  Combat_HandleCommandAttack(object oAttacker, object oTarget, int nCommandSubType)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
    struct CombatAttackResultStruct stAttack1;&lt;br /&gt;
    struct CombatAttackResultStruct stAttack2;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    object oWeapon;&lt;br /&gt;
    object oWeapon2;&lt;br /&gt;
&lt;br /&gt;
    int nHand = Combat_GetAttackHand(oAttacker);&lt;br /&gt;
&lt;br /&gt;
    if (nHand == HAND_MAIN)&lt;br /&gt;
    {&lt;br /&gt;
        oWeapon = GetItemInEquipSlot(INVENTORY_SLOT_MAIN);&lt;br /&gt;
    }&lt;br /&gt;
    else if (nHand == HAND_OFFHAND)&lt;br /&gt;
    {&lt;br /&gt;
        oWeapon = GetItemInEquipSlot(INVENTORY_SLOT_OFFHAND);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    // Double Weapon Strike.&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    if (IsModalAbilityActive(oAttacker, ABILITY_TALENT_DUAL_WEAPON_DOUBLE_STRIKE))&lt;br /&gt;
    {&lt;br /&gt;
        nHand=HAND_BOTH;&lt;br /&gt;
        oWeapon = GetItemInEquipSlot(INVENTORY_SLOT_MAIN);&lt;br /&gt;
        oWeapon2 = GetItemInEquipSlot(INVENTORY_SLOT_OFFHAND);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    int nAttackType = Combat_GetAttackType(oAttacker, oWeapon);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    // Handle Attack #1&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    stAttack1 = Combat_PerformAttack(oAttacker, oTarget, oWeapon);&lt;br /&gt;
&lt;br /&gt;
    if (nHand == HAND_BOTH)&lt;br /&gt;
    {&lt;br /&gt;
           stAttack2 = Combat_PerformAttack(oAttacker, oTarget, oWeapon2);&lt;br /&gt;
&lt;br /&gt;
           if (stAttack1.nAttackResult != COMBAT_RESULT_DEATHBLOW &amp;amp;&amp;amp;  stAttack2.nAttackResult == COMBAT_RESULT_DEATHBLOW)&lt;br /&gt;
           {&lt;br /&gt;
                stAttack1 = stAttack2;&lt;br /&gt;
                nHand = HAND_MAIN; // Deathblows just use the main hand.&lt;br /&gt;
           }&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    // If we execute a deathblow, we gain the death fury effect for a couple of&lt;br /&gt;
    // seconds and apply the deathblow command&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    if (stAttack1.nAttackResult == COMBAT_RESULT_DEATHBLOW)&lt;br /&gt;
    {&lt;br /&gt;
&lt;br /&gt;
        // ----------------------------------------------------------------------&lt;br /&gt;
        // Georg: Do Not Modify the following section.&lt;br /&gt;
        // START &amp;gt;&amp;gt;&lt;br /&gt;
        // GM - Adding the deathblow should be the last thing done because it&lt;br /&gt;
        // will clear the attack command.&lt;br /&gt;
        // Specifically, SetAttackResult MUST be executed before adding the deathblow.&lt;br /&gt;
        // ----------------------------------------------------------------------&lt;br /&gt;
        SetAttackResult(oAttacker,  stAttack1.nAttackResult, stAttack1.eImpactEffect,&lt;br /&gt;
                                    COMBAT_RESULT_INVALID, Effect()  );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        WR_AddCommand(oAttacker, CommandDeathBlow(oTarget, stAttack1.nDeathblowType), TRUE, TRUE);&lt;br /&gt;
&lt;br /&gt;
        return COMMAND_RESULT_SUCCESS;&lt;br /&gt;
        // ----------------------------------------------------------------------&lt;br /&gt;
        // &amp;lt;&amp;lt; END&lt;br /&gt;
        // ----------------------------------------------------------------------&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    // SetAttackResult requires a result in either the first or second result&lt;br /&gt;
    // field to determine which hand should attack.&lt;br /&gt;
    // -------------------------------------------------------------------------&lt;br /&gt;
    if (nHand == HAND_MAIN || stAttack1.nAttackResult == COMBAT_RESULT_BACKSTAB)&lt;br /&gt;
    {&lt;br /&gt;
          SetAttackResult(oAttacker,  stAttack1.nAttackResult, stAttack1.eImpactEffect,&lt;br /&gt;
                                    COMBAT_RESULT_INVALID, Effect()  );&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
    else if (nHand == HAND_OFFHAND)&lt;br /&gt;
    {&lt;br /&gt;
          SetAttackResult(oAttacker,  COMBAT_RESULT_INVALID, Effect(),&lt;br /&gt;
                                        stAttack1.nAttackResult, stAttack1.eImpactEffect );&lt;br /&gt;
    }&lt;br /&gt;
    else if (nHand == HAND_BOTH)&lt;br /&gt;
    {&lt;br /&gt;
         SetAttackResult(oAttacker,  stAttack1.nAttackResult, stAttack1.eImpactEffect,stAttack2.nAttackResult, stAttack2.eImpactEffect );&lt;br /&gt;
    }&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
          SetAttackResult(oAttacker,  stAttack1.nAttackResult, stAttack1.eImpactEffect,&lt;br /&gt;
                                    COMBAT_RESULT_INVALID, Effect()  );&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    if (stAttack1.fAttackDuration != ATTACK_LOOP_DURATION_INVALID)&lt;br /&gt;
    {&lt;br /&gt;
&lt;br /&gt;
        if (IsHumanoid(oAttacker))&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
            if(nAttackType == ATTACK_TYPE_RANGED)&lt;br /&gt;
            {&lt;br /&gt;
                // the &amp;quot;attack duration&amp;quot; for ranged weapons actually overrides&lt;br /&gt;
                // the time spent drawing and preparing to aim&lt;br /&gt;
                if ( GetBaseItemType(oWeapon) == BASE_ITEM_TYPE_STAFF )&lt;br /&gt;
                {&lt;br /&gt;
                    SetAttackDuration(oAttacker, 0.30);&lt;br /&gt;
                }&lt;br /&gt;
                else&lt;br /&gt;
                {&lt;br /&gt;
                    object oArmor =GetItemInEquipSlot(INVENTORY_SLOT_CHEST);&lt;br /&gt;
                    if ( !IsArmorMassive(oArmor) &amp;amp;&amp;amp; HasAbility(oAttacker, ABILITY_TALENT_MASTER_ARCHER))&lt;br /&gt;
                    {&lt;br /&gt;
                        if(IsFollower(oAttacker))&lt;br /&gt;
                            SetAttackDuration(oAttacker, 0.8);&lt;br /&gt;
                        else&lt;br /&gt;
                            SetAttackDuration(oAttacker, 1.5);&lt;br /&gt;
                    }&lt;br /&gt;
                    else if (IsArmorHeavyOrMassive(oArmor) )&lt;br /&gt;
                    {&lt;br /&gt;
                         if(IsFollower(oAttacker))&lt;br /&gt;
                            SetAttackDuration(oAttacker, 2.0);&lt;br /&gt;
                        else&lt;br /&gt;
                            SetAttackDuration(oAttacker, 2.5);&lt;br /&gt;
                    }&lt;br /&gt;
                    else&lt;br /&gt;
                    {&lt;br /&gt;
                        if(IsFollower(oAttacker))&lt;br /&gt;
                            SetAttackDuration(oAttacker, 0.8);&lt;br /&gt;
                        else&lt;br /&gt;
                            SetAttackDuration(oAttacker, 1.5);&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                SetAimLoopDuration(oAttacker, stAttack1.fAttackDuration );&lt;br /&gt;
&lt;br /&gt;
                #ifdef DEBUG&lt;br /&gt;
                Log_Trace(LOG_CHANNEL_COMBAT,&amp;quot;combat_h.HandleCommandAttack&amp;quot;,&amp;quot;RangedAim Loop Duration set to &amp;quot; + FloatToString(stAttack1.fAttackDuration));&lt;br /&gt;
                #endif&lt;br /&gt;
            }&lt;br /&gt;
            else if (nAttackType == ATTACK_TYPE_MELEE)&lt;br /&gt;
            {&lt;br /&gt;
&lt;br /&gt;
                SetAttackDuration(oAttacker,stAttack1.fAttackDuration);&lt;br /&gt;
&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    return COMMAND_RESULT_SUCCESS;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/dascript&amp;gt;&lt;br /&gt;
Category: [[Combat_H]]&lt;/div&gt;</summary>
		<author><name>Mouser9169</name></author>	</entry>

	</feed>