30 lines
717 B
C#
30 lines
717 B
C#
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;
|
|
}
|
|
}
|
|
|
|
|