Implement SPELL_ATTR0_ON_NEXT_SWING_2

Misc. Fixes
This commit is contained in:
hondacrx
2017-09-20 00:27:21 -04:00
parent bd1252b3c2
commit 28e6d6870a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ namespace Framework.Constants
public const int BankMoneyLogsTab = 100;
public const uint WithdrawMoneyUnlimited = 0xFFFFFFFF;
public const uint WithdrawSlotUnlimited = 0xFFFFFFFF;
public const int WithdrawSlotUnlimited = -1;
public const uint EventLogGuidUndefined = 0xFFFFFFFF;
public const uint ChallengesTypes = 6;
+1 -1
View File
@@ -173,7 +173,7 @@ public static class MathFunctions
public static int RoundToInterval(ref int num, dynamic floor, dynamic ceil)
{
return num = Math.Min(Math.Max(num, floor), ceil);
return num = (int)Math.Min(Math.Max(num, floor), ceil);
}
public static uint RoundToInterval(ref uint num, dynamic floor, dynamic ceil)
{
+1 -1
View File
@@ -6395,7 +6395,7 @@ namespace Game.Spells
bool IsNextMeleeSwingSpell()
{
return m_spellInfo.HasAttribute(SpellAttr0.OnNextSwing);
return m_spellInfo.HasAttribute(SpellAttr0.OnNextSwing | SpellAttr0.OnNextSwing2);
}
bool IsAutoActionResetSpell()