Skip to content
Snippets Groups Projects
Commit 46eed868 authored by Zealar's avatar Zealar
Browse files

Servitor Share few problems solved, Fix #267

parent a51c60c3
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@ public final class ServitorShare extends AbstractEffect
if (info.getEffected().getActingPlayer().getSummon() != null)
{
info.getEffected().getActingPlayer().getSummon().broadcastInfo();
info.getEffected().getActingPlayer().getSummon().getStatus().startHpMpRegeneration();
}
}
......@@ -75,6 +76,14 @@ public final class ServitorShare extends AbstractEffect
info.getEffected().getActingPlayer().setServitorShare(null);
if (info.getEffected().getSummon() != null)
{
if (info.getEffected().getSummon().getCurrentHp() > info.getEffected().getSummon().getMaxHp())
{
info.getEffected().getSummon().setCurrentHp(info.getEffected().getSummon().getMaxHp());
}
if (info.getEffected().getSummon().getCurrentMp() > info.getEffected().getSummon().getMaxMp())
{
info.getEffected().getSummon().setCurrentMp(info.getEffected().getSummon().getMaxMp());
}
info.getEffected().getSummon().broadcastInfo();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment