Marthiri Grovekeeper

Spell Casting
A marthiri grovekeeper casts arcane spells drawn from the magus spell list. She can cast any spell she knows without preparing it ahead of time. To learn or cast a spell, an marthiri grovekeeper must have a Charisma score equal to at least 10 + the spell’s level. The DC for a saving throw against a marthiri grovekeeper's spell is 10 + the spell’s level + the marthiri grovekeeper's Charisma modifier. A marthiri grovekeeper can cast only a certain number of spells of each spell level per day. Her base daily spell allotment is the same as a bard of the same level. In addition, she receives bonus spells per day if she has a high Charisma score.
A marthiri grovekeeper's selection of spells is limited. She has the same number of spells known as a bard of the same level, and can choose new spells to replace old ones at 5th level and every 3 class levels after that, just as a bard does. See the bard for more information on swapping spells known.
This ability replaces the magus’s spells class feature
Weapon and Armor Proficiency
A marthiri grovekeeper is proficient with all simple and martial weapons. A marthiri grovekeeper is also proficient with shields, but not tower shields. A marthiri grovekeeper is not proficient with armor, and is affected by arcane spell failure as normal from armor, but shields they are proficient with do not incur arcane spell failure.
Marthiri Woodweaving
A marthiri grovekeeper can grow weapons made of metal-like marthiri out of any living wooden tree that stands at least 5 feet high. As a standard action, the marthiri grovekeeper touches an adjacent tree, and chooses a melee weapon or shield of their size they are proficient in using. If they have a free hand, they may immediately wield the weapon as part of the action, and if a creature is adjacent to them and the tree, they may immediately make a single melee attack as if they had taken the attack action. The weapon or shield created cannot have a cost of more than 1,000 gold for every level of marthiri grovekeeper the character has, and must be made of marthiri, but otherwise can be designed as the character sees fit. At the end of the marthiri grovekeeper's turn, any object created this way they are not wielding, wearing or keeping on their person disintegrates into dust and cannot be repaired or recovered in any way. The marthiri material cost is waived when determining what objects can be created with this ability.
Weapons and shields created using this class feature do not interfere with spellcasting, and so the marthiri grovekeeper may dual wield or use a shield or two handed weapon and still be able to use spell combat.
This ability replaces spell recall, and is gained at level 1.
Grovekeeper Spell Combat
A marthiri grovekeeper's Spell Combat functions differently from a standard magus. The marthiri grovekeeper need not make concentration checks to cast defensively while using Spell Combat or Spellstrike, but cannot cast any spell as part of Spell Combat until they have made a successful attack roll during their turn. They must choose the spell and use a full-round action, but if they miss their attack(s), the spell fails and is lost, unless it is a touch attack spell being used with Spellstrike, in which case the charge may be held as normal.
This ability replaces the magus’s Spell Combat feature.
Woodweaver Enchantments
At 1st level, the marthiri grovekeeper gains a reservoir of mystical arcane energy that she can draw upon to fuel her powers and enhance her weapons and shield. This arcane pool has a number of points equal to 1/2 her marthiri grovekeeper level (minimum 1) + her Charisma modifier. The pool refreshes once per day when the marthiri grovekeeper prepares her spells.
At 1st level, a marthiri grovekeeper can expend 1 point from her arcane pool as a swift action to grant any marthiri weapon or shield she is holding a +1 enhancement bonus for 1 minute, or enchant a weapon in each hand or a weapon and shield simultaneously as a move action. For every four levels beyond 1st, the weapon gains another +1 enhancement bonus, to a maximum of +5 at 17th level. These bonuses can be added to the weapon, stacking with existing weapon enhancement to a maximum of +5. Multiple uses of this ability do not stack with themselves.
At 5th level, these bonuses can be used to add any of the following weapon properties: bane (animal, magical beast, vermin or monstrous humanoid), ghost touch, impervious, keen, merciful, speed, or vicious. Or the following shield properties: energy resistance, fortification (light), fortification (medium), fortification (heavy), impervious, or mirrored.
Adding these properties consumes an amount of bonus equal to the property’s base price modifier. These properties are added to any the weapon already has, but duplicates do not stack. If the weapon is not magical, at least a +1 enhancement bonus must be added before any other properties can be added. These bonuses and properties are decided when the arcane pool point is spent and cannot be changed until the next time the marthiri grovekeeper uses this ability. These bonuses do not function if the weapon is wielded by anyone other than the marthiri grovekeeper.
A marthiri grovekeeper can only affect a combination of two weapons or shields at a time. If he uses this ability again, the first use immediately ends.
Woodweave Sacrifice
Once per encounter, a marthiri grovekeeper may sacrifice a shield they are wielding created by the marthiri woodweaving ability to reduce the hit point damage of a single source by half or 10, whichever is higher. The object is permanently destroyed and any woodweaver enchantments lost with it. They may also sacrifice a weapon that is being used in an attack that is a critical threat to automatically confirm the critical. That weapon is destroyed immediately after the damage for the critical hit is dealt, and cannot be used for further attacks that turn. If a tower shield is sacrificed for this ability, it instead reduces the damage by half or 20, whichever is higher.
This ability can be taken in place of any magus arcana or bonus feat, or not taken at all.
Grovekeeper Trance
At 7th level, a marthiri grovekeeper can spend an arcane pool point as a swift action to gain half their marthiri grovekeeper levels as a dodge bonus to AC and reflex saves, or instead gain an insight bonus to attack rolls and damage, but they may not cast spells while this ability is active. If the marthiri grovekeeper is struck by an attack from a hostile creature of at least half their hit dice that is a critical threat while in this state and gaining the bonus to dodge, their entire arcane pool replenishes to full, and the grovekeeper trance ends immediately after the attack resolves. If the marthiri grovekeeper confirms a critical hit against a creature while in this state, they regain their charisma modifier in spell levels back of expended spell slots in any combination they choose. Excess spell levels not used are lost. Each of these refresh abilities may activate at most once every 24 hours. Both trances cannot be used at the same time. The trance lasts for a number of rounds equal to half the marthiri grovekeeper's charisma bonus (minimum 1). The Grovekeeper Trance ends immediately if the marthiri grovekeeper is not in initiative. The marthiri grovekeeper cannot choose to end the trance early.
This replaces knowledge pool.
Tower Shields
At 7th level, a marthiri grovekeeper gains proficiency with tower shields, and the penalty to attack rolls is reduced by 1 for every 7 levels of marthiri grovekeeper they have.
This replaces medium armor.
Improved Grovekeeper Spell Combat
At 8th level, a marthiri grovekeeper no longer loses the spell slot if they fail to hit with an attack, but the spell still cannot be cast
This ability replaces the magus's Improved Spell Combat feature.
Improved Woodweaving
At 13th level, the base cost and masterwork quality of a weapon do not count towards the cost of objects created for the purposes of marthiri woodweaving. Enhancement bonuses cost half as much as usual, but special abilities remain the same price. At the cost of an arcane pool point, the marthiri grovekeeper may create objects out of non-living wood, or any living plant material that isn't wood, and regardless of its size.
Greater Grovekeeper Spell Combat
At 14th level, the marthiri grovekeeper may spend an arcane pool point as a free action to allow a spell to be cast even if all attacks missed. They may instead spend an arcane pool point to reroll any single attack that missed when all attacks have missed, which would also allow the spell to be cast.
This ability replaces the magus's Greater Spell Combat feature.