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

BETA: Fix Cubic Mastery effect should set max cubic not add it

Reported by : Driad
parent 21f12312
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ public final class CubicMastery extends AbstractEffect ...@@ -17,7 +17,7 @@ public final class CubicMastery extends AbstractEffect
{ {
super(attachCond, applyCond, set, params); super(attachCond, applyCond, set, params);
_cubicCount = params.getInt("cubicCount", 0); _cubicCount = params.getInt("cubicCount", 1);
} }
@Override @Override
...@@ -29,8 +29,7 @@ public final class CubicMastery extends AbstractEffect ...@@ -29,8 +29,7 @@ public final class CubicMastery extends AbstractEffect
@Override @Override
public void onStart(BuffInfo info) public void onStart(BuffInfo info)
{ {
final int cubicCount = info.getEffected().getActingPlayer().getStat().getMaxCubicCount() + _cubicCount; info.getEffected().getActingPlayer().getStat().setMaxCubicCount(_cubicCount);
info.getEffected().getActingPlayer().getStat().setMaxCubicCount(cubicCount);
} }
@Override @Override
...@@ -42,14 +41,6 @@ public final class CubicMastery extends AbstractEffect ...@@ -42,14 +41,6 @@ public final class CubicMastery extends AbstractEffect
@Override @Override
public void onExit(BuffInfo info) public void onExit(BuffInfo info)
{ {
final int cubicCount = info.getEffected().getActingPlayer().getStat().getMaxCubicCount() - _cubicCount; info.getEffected().getActingPlayer().getStat().setMaxCubicCount(1);
if (cubicCount <= 0)
{
info.getEffected().getActingPlayer().getStat().setMaxCubicCount(0);
}
else
{
info.getEffected().getActingPlayer().getStat().setMaxCubicCount(cubicCount);
}
} }
} }
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