Tweak special powers

This commit is contained in:
Paul Chote
2010-06-13 16:33:32 +12:00
parent 77510b4bef
commit 8397bc12b5
3 changed files with 9 additions and 8 deletions

View File

@@ -136,14 +136,12 @@ namespace OpenRA.Traits
public void Activate()
{
if (!IsAvailable || !IsReady)
{
Sound.Play("briefing.aud");
return;
}
if (Info.RequiresPower && !IsPowered())
{
Sound.Play("nopowr1.aud");
var eva = Owner.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
Sound.Play(eva.AbilityInsufficientPower);
return;
}