Fixed AttackTrait reducing damage.
This commit is contained in:
@@ -45,7 +45,7 @@ public final class AttackTrait extends AbstractEffect
|
||||
|
||||
for (Entry<String, Object> param : params.getSet().entrySet())
|
||||
{
|
||||
_attackTraits.put(TraitType.valueOf(param.getKey()), Float.parseFloat((String) param.getValue()) / 100);
|
||||
_attackTraits.put(TraitType.valueOf(param.getKey()), (Float.parseFloat((String) param.getValue()) / 100) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -581,7 +581,7 @@ public class CreatureStat
|
||||
_lock.readLock().lock();
|
||||
try
|
||||
{
|
||||
_attackTraitValues[traitType.ordinal()] += value;
|
||||
_attackTraitValues[traitType.ordinal()] *= value;
|
||||
_attackTraits.add(traitType);
|
||||
}
|
||||
finally
|
||||
@@ -595,7 +595,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