public class DialogRequirementCanRepairRebirth : BaseDialogRequirement { public override bool CheckRequirement(EntityPlayer player, EntityNPC talkingTo) { if (player.Buffs.HasBuff("FuriousRamsayHelpRepairBuff")) { return false; } else { EntityNPCRebirth npc = (EntityNPCRebirth)talkingTo; if (npc != null) { if (npc.LeaderUtils.Owner) { if (npc.LeaderUtils.Owner.Buffs.HasBuff("FuriousRamsayHelpRepairBuff")) { return false; } } } } return true; } }