Removal of EnlargeAbnormalSlot effect handler.
Contributed by Sahar.
This commit is contained in:
@ -35,6 +35,8 @@ import com.l2jserver.gameserver.model.zone.ZoneId;
|
||||
|
||||
public class CharStat
|
||||
{
|
||||
private static final int DIVINE_INSPIRATION = 1405;
|
||||
|
||||
private final L2Character _activeChar;
|
||||
private long _exp = 0;
|
||||
private long _sp = 0;
|
||||
@ -61,7 +63,8 @@ public class CharStat
|
||||
|
||||
/**
|
||||
* Calculate the new value of the state with modifiers that will be applied on the targeted L2Character.<BR>
|
||||
* <B><U> Concept</U> :</B><BR A L2Character owns a table of Calculators called <B>_calculators</B>. Each Calculator (a calculator per state) own a table of Func object. A Func object is a mathematic function that permit to calculate the modifier of a state (ex : REGENERATE_HP_RATE...) : <BR>
|
||||
* <B><U> Concept</U> :</B><BR
|
||||
* A L2Character owns a table of Calculators called <B>_calculators</B>. Each Calculator (a calculator per state) own a table of Func object. A Func object is a mathematic function that permit to calculate the modifier of a state (ex : REGENERATE_HP_RATE...) : <BR>
|
||||
* FuncAtkAccuracy -> Math.sqrt(_player.getDEX())*6+_player.getLevel()<BR>
|
||||
* When the calc method of a calculator is launched, each mathematical function is called according to its priority <B>_order</B>.<br>
|
||||
* Indeed, Func with lowest priority order is executed firsta and Funcs with the same order are executed in unspecified order.<br>
|
||||
@ -835,6 +838,11 @@ public class CharStat
|
||||
*/
|
||||
public int getMaxBuffCount()
|
||||
{
|
||||
final int extraSlots = _activeChar.getSkillLevel(DIVINE_INSPIRATION);
|
||||
if (extraSlots > -1)
|
||||
{
|
||||
return _maxBuffCount + extraSlots;
|
||||
}
|
||||
return _maxBuffCount;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user