PowerCheck checks whether the EnergyNeed effect is already present

Felix Wagner 2012-01-10 16:50:01 +00:00
parent 87a89e44b8
commit b5ba1c4a6c
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public func CheckPower(int power_check, bool no_substract)
return true;
}
}
AddEffect("EnergyNeed", this, 100, 12, this);
if (!GetEffect("EnergyNeed", this)) AddEffect("EnergyNeed", this, 100, 12, this);
return false;
}