text: #include <std.h>
  #include <daemons.h>
  inherit FEAT;
  
  void create() {
      ::create();
      feat_type("permanent");
      feat_category("Presence");
      feat_name("divine grace");
      feat_prereq("Paladin L7");
      feat_desc("The paladin is the paragon of her ideals and the sheer force of her faith alone protects her from the influences of others. This feat grants the paladin a bonus to all of their saving throws equal to 1/2 her charisma bonus (currently max of 5). This feat does not stack with Force of Personality.");
      permanent(1);
      set_required_for(({}));
  }
  
  int prerequisites(object ob) {
     if(!objectp(ob)) { return 0; }
  
     if((int)ob->query_class_level("paladin") < 7) 
     {
        dest_effect();
        return 0;
     }
     return ::prerequisites(ob);
  }
  
  void execute_feat() 
  {
      ::execute_feat();
      dest_effect();
  }
  
  void permanent_effects(object ob) {
      ::permanent_effects(ob);
      dest_effect();
      return;
  }
  
  void reverse_permanent_effects(object ob) {
      ::reverse_permanent_effects(ob);
      dest_effect();
      return;
  }
  
  void dest_effect() {
      ::dest_effect();
      remove_feat(TO);
      return;
  }
  
  