DB Updates and Fixes

This commit is contained in:
hondacrx
2021-11-16 23:29:48 -05:00
parent fc5aa0d97c
commit 93c8f9bd2e
13 changed files with 512 additions and 2 deletions
@@ -2023,6 +2023,11 @@ namespace Game.Entities
SendPacket(knownSpells);
}
void SendUnlearnSpells()
{
SendPacket(new SendUnlearnSpells());
}
public void LearnSpellHighestRank(uint spellid)
{
LearnSpell(spellid, false);
+1 -1
View File
@@ -5479,7 +5479,7 @@ namespace Game.Entities
SendKnownSpells();
// SMSG_SEND_UNLEARN_SPELLS
SendPacket(new SendUnlearnSpells());
SendUnlearnSpells();
// SMSG_SEND_SPELL_HISTORY
SendSpellHistory sendSpellHistory = new();
+1 -1
View File
@@ -1194,7 +1194,7 @@ namespace Game.Entities
Cypher.Assert(i_disabledAI == null, "Attempt to schedule charm AI change on unit that already has disabled AI");
else if (m_aiLocked)
{
Cypher.Assert(!i_lockedAILifetimeExtension, "Attempt to schedule multiple charm AI changes during one update");
Cypher.Assert(i_lockedAILifetimeExtension == null, "Attempt to schedule multiple charm AI changes during one update");
i_lockedAILifetimeExtension = i_AI; // AI needs to live just a bit longer to finish its UpdateAI
}
else if (!IsPlayer())