static public Fact getShadowBuff(UnitDescriptor descriptor) { if (descriptor == null) { return(null); } var shadow20_fact = descriptor.GetFact(shadow20_buff); var shadow60_fact = descriptor.GetFact(shadow60_buff); var shadow80_fact = descriptor.GetFact(shadow80_buff); if (shadow20_fact != null) { return(shadow20_fact); } if (shadow60_fact != null) { return(shadow60_fact); } if (shadow80_fact != null) { return(shadow80_fact); } return(null); }