diff options
Diffstat (limited to 'src/gui/ministatuswindow.cpp')
-rw-r--r-- | src/gui/ministatuswindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp index 8173082f..fac8b35f 100644 --- a/src/gui/ministatuswindow.cpp +++ b/src/gui/ministatuswindow.cpp @@ -37,6 +37,8 @@ #include "net/playerhandler.h" #include "net/gamehandler.h" +#include "net/tmwa/protocol.h" + #include "resources/theme.h" #include "utils/gettext.h" @@ -138,6 +140,14 @@ void MiniStatusWindow::event(Event::Channel channel, StatusWindow::updateXPBar(mXpBar); } } + if (event.getType() == Event::UpdateStat) + { + if (Net::getNetworkType() == ServerInfo::TMWATHENA && + event.getInt("id") == TmwAthena::MATK) + { + StatusWindow::updateMPBar(mMpBar); + } + } } else if (channel == Event::ActorSpriteChannel) { |