Fixed AttackTrait reducing damage.
This commit is contained in:
@ -591,7 +591,7 @@ public class CreatureStat
|
||||
_lock.readLock().lock();
|
||||
try
|
||||
{
|
||||
_attackTraitValues[traitType.ordinal()] += value;
|
||||
_attackTraitValues[traitType.ordinal()] *= value;
|
||||
_attackTraits.add(traitType);
|
||||
}
|
||||
finally
|
||||
@ -605,7 +605,7 @@ public class CreatureStat
|
||||
_lock.readLock().lock();
|
||||
try
|
||||
{
|
||||
_attackTraitValues[traitType.ordinal()] -= value;
|
||||
_attackTraitValues[traitType.ordinal()] /= value;
|
||||
if (_attackTraitValues[traitType.ordinal()] == 1)
|
||||
{
|
||||
_attackTraits.remove(traitType);
|
||||
|
Reference in New Issue
Block a user