summaryrefslogtreecommitdiff
path: root/src/net/tmwa/specialhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/specialhandler.cpp')
-rw-r--r--src/net/tmwa/specialhandler.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/net/tmwa/specialhandler.cpp b/src/net/tmwa/specialhandler.cpp
index d502cc85f..95478d5bf 100644
--- a/src/net/tmwa/specialhandler.cpp
+++ b/src/net/tmwa/specialhandler.cpp
@@ -110,7 +110,10 @@ void SpecialHandler::handleMessage(Net::MessageIn &msg)
PlayerInfo::setStatBase(skillId, level);
if (skillDialog)
- skillDialog->setModifiable(skillId, up);
+ {
+ if (!skillDialog->setModifiable(skillId, up))
+ skillDialog->addSkill(skillId, level, up);
+ }
}
break;
}
@@ -124,7 +127,10 @@ void SpecialHandler::handleMessage(Net::MessageIn &msg)
PlayerInfo::setStatBase(skillId, level);
if (skillDialog)
- skillDialog->setModifiable(skillId, up);
+ {
+ if (!skillDialog->setModifiable(skillId, up))
+ skillDialog->addSkill(skillId, level, up);
+ }
}
break;