Misc fixes

This commit is contained in:
hondacrx
2017-12-30 16:34:55 -05:00
parent cf3857edb8
commit 536c8c94a5
4 changed files with 669 additions and 7 deletions
+2 -4
View File
@@ -19,6 +19,7 @@ using Framework.Constants;
using Framework.IO;
using Game.Entities;
using Game.Spells;
using System;
namespace Game.Chat
{
@@ -53,10 +54,7 @@ namespace Game.Chat
return false;
}
bool triggered = (triggeredStr != null);
handler.GetSession().GetPlayer().CastSpell(target, spellId, triggered);
handler.GetSession().GetPlayer().CastSpell(target, spellId, !triggeredStr.IsEmpty());
return true;
}
+2 -2
View File
@@ -1107,9 +1107,9 @@ namespace Game.Chat
// send spell in "id - [name, rank N] [talent] [passive] [learn] [known]" format
StringBuilder ss = new StringBuilder();
if (handler.GetSession() != null)
ss.Append(spellInfo.Id + " - |cffffffff|Hspell:" + spellInfo.Id + "|h[" + spellInfo.SpellName);
ss.Append(spellInfo.Id + " - |cffffffff|Hspell:" + spellInfo.Id + "|h[" + name);
else
ss.Append(spellInfo.Id + " - " + spellInfo.SpellName);
ss.Append(spellInfo.Id + " - " + name);
// include rank in link name
if (rank != 0)
+1 -1
View File
@@ -887,7 +887,7 @@ namespace Game.Entities
if (bound.Spell == dbc_node.Spell)
{
Log.outError(LogFilter.Sql, "Spell {0} auto-learn spell {1} in spell.dbc then the record in `spell_learn_spell` is redundant, please fix DB.",
entry.SpellName, dbc_node.Spell);
entry.Id, dbc_node.Spell);
found = true;
break;
}