Misc fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user