The warlord trait is limited to refund 1CP, but you get a dice roll for each
CP you spend.
GAINING AND REFUNDING COMMAND POINTS
There are several rules that give you a chance to gain or refund CPs when you or your opponent either use a Stratagems or spend CPs to use a Stratagem. Each player can only gain or have refunded a total of 1 CP per battle round as the result of such rules, regardless of the source, and CPs that are spent on Stratagems that are not used during a phase, such as those used ‘before the battle’ or ‘at the end of the battle round’, can never be refunded. The limit of gaining or refunding 1 CP per battle round does not apply to the Battle-forged CP bonus a player gains at the start of their Command phase before doing anything else, or to any CPs gained by mission special rules that instruct players to gain CPs in their Command phase.
Exceptions to this are stratagems, and mission rules.
STRATAGEMS THAT GAIN OR REFUND CPS
The advanced rules for Command points state that you cannot gain, or have refunded, more than 1 Command point per battle round because of any rules (other than via the exceptions listed here, such as the Battle-forged CP Bonus). However, there are a small handful of Stratagems that let players gain or refund several Command points when used (e.g. Feeder Tendrils in Codex: Tyranids). So long as such a Stratagem is used during a phase (i.e. it is not used ‘before the battle’ or ‘at the end of a battle round’), the limit of gaining or refunding 1 Command point per battle round does not apply to any Command points gained via Stratagems.