Messed up the commit history, so here is all the files rip, Credit to TrinityCore

This commit is contained in:
hondacrx
2023-09-16 08:42:35 -04:00
parent 87284bbded
commit f636ea225f
373 changed files with 158910 additions and 2170 deletions
+5 -5
View File
@@ -3860,9 +3860,10 @@ namespace Game.Spells
}
}
UpdateSpellCastDataAmmo(castData.Ammo);
if (castFlags.HasFlag(SpellCastFlags.Projectile))
castData.AmmoDisplayID = (int)GetSpellCastDataAmmo();
if (castFlags.HasAnyFlag(SpellCastFlags.Immunity))
if (castFlags.HasFlag(SpellCastFlags.Immunity))
{
castData.Immunities.School = schoolImmunityMask;
castData.Immunities.Value = (uint)mechanicImmunityMask;
@@ -4010,7 +4011,7 @@ namespace Game.Spells
m_channelTargetEffectMask = 0;
}
void UpdateSpellCastDataAmmo(SpellAmmo ammo)
uint GetSpellCastDataAmmo()
{
InventoryType ammoInventoryType = 0;
uint ammoDisplayID = 0;
@@ -4084,8 +4085,7 @@ namespace Game.Spells
}
}
ammo.DisplayID = (int)ammoDisplayID;
ammo.InventoryType = (sbyte)ammoInventoryType;
return ammoDisplayID;
}
void SendSpellExecuteLog()