Skip to content

Commit

Permalink
Spell text displays as overhead.
Browse files Browse the repository at this point in the history
Addresses #414.
  • Loading branch information
ZaneDubya committed Nov 9, 2016
1 parent c476f97 commit 5edf5ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dev/Ultima/World/WorldClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,11 @@ void ReceiveTextMessage(MessageTypes msgType, string text, int font, ushort hue,
m_World.Interaction.ChatMessage("[YELL] " + text, font, hue, asUnicode);
break;
case MessageTypes.Spell:
m_World.Interaction.ChatMessage("[SPELL] " + text, font, hue, asUnicode);
if (serial.IsValid)
{
overhead = WorldModel.Entities.AddOverhead(msgType, serial, text, font, hue, asUnicode);
PlayerState.Journaling.AddEntry(text, font, hue, speakerName, asUnicode);
}
break;
case MessageTypes.Guild:
m_World.Interaction.ChatMessage($"[GUILD] {speakerName}: {text}", font, hue, asUnicode);
Expand Down

0 comments on commit 5edf5ea

Please sign in to comment.