tryEffect.unitsLeft.value = tryEffect.unitsLeft.value + amount;
}
}
public void removeEffect(int byID, int amount) {
TileEffect tryEffect = returnEffect(byID);
if (tryEffect != null) {
if (tryEffect.unitsLeft.value > amount) {
tryEffect.unitsLeft.value = tryEffect.unitsLeft.value - amount;