dnd-template/.obsidian/plugins/obsidian-5e-statblocks/main.js
2022-07-04 19:14:39 +02:00

432 lines
726 KiB
JavaScript

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var bc=Object.create;var za=Object.defineProperty;var _c=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var vc=Object.getPrototypeOf,yc=Object.prototype.hasOwnProperty;var Ts=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),wc=(t,e)=>{for(var a in e)za(t,a,{get:e[a],enumerable:!0})},Cs=(t,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kc(e))!yc.call(t,i)&&i!==a&&za(t,i,{get:()=>e[i],enumerable:!(n=_c(e,i))||n.enumerable});return t};var ma=(t,e,a)=>(a=t!=null?bc(vc(t)):{},Cs(e||!t||!t.__esModule?za(a,"default",{value:t,enumerable:!0}):a,t)),Tc=t=>Cs(za({},"__esModule",{value:!0}),t);var As=Ts((xs,zn)=>{(function(t){"use strict";var e=D(),a=I(),n=T(),i=k(),s={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:r,toPng:d,toJpeg:l,toBlob:m,toPixelData:c,impl:{fontFaces:n,images:i,util:e,inliner:a,options:{}}};typeof zn<"u"?zn.exports=o:t.domtoimage=o;function r(g,p){return p=p||{},u(p),Promise.resolve(g).then(function(E){return f(E,p.filter,!0)}).then(b).then(y).then(v).then(function(E){return _(E,p.width||e.width(g),p.height||e.height(g))});function v(E){return p.bgcolor&&(E.style.backgroundColor=p.bgcolor),p.width&&(E.style.width=p.width+"px"),p.height&&(E.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(H){E.style[H]=p.style[H]}),E}}function c(g,p){return h(g,p||{}).then(function(v){return v.getContext("2d").getImageData(0,0,e.width(g),e.height(g)).data})}function d(g,p){return h(g,p||{}).then(function(v){return v.toDataURL()})}function l(g,p){return p=p||{},h(g,p).then(function(v){return v.toDataURL("image/jpeg",p.quality||1)})}function m(g,p){return h(g,p||{}).then(e.canvasToBlob)}function u(g){typeof g.imagePlaceholder>"u"?o.impl.options.imagePlaceholder=s.imagePlaceholder:o.impl.options.imagePlaceholder=g.imagePlaceholder,typeof g.cacheBust>"u"?o.impl.options.cacheBust=s.cacheBust:o.impl.options.cacheBust=g.cacheBust}function h(g,p){return r(g,p).then(e.makeImage).then(e.delay(100)).then(function(E){var H=v(g);return H.getContext("2d").drawImage(E,0,0),H});function v(E){var H=document.createElement("canvas");if(H.width=p.width||e.width(E),H.height=p.height||e.height(E),p.bgcolor){var w=H.getContext("2d");w.fillStyle=p.bgcolor,w.fillRect(0,0,H.width,H.height)}return H}}function f(g,p,v){if(!v&&p&&!p(g))return Promise.resolve();return Promise.resolve(g).then(E).then(function(W){return H(g,W,p)}).then(function(W){return w(g,W)});function E(W){return W instanceof HTMLCanvasElement?e.makeImage(W.toDataURL()):W.cloneNode(!1)}function H(W,R,G){var z=W.childNodes;if(z.length===0)return Promise.resolve(R);return Z(R,e.asArray(z),G).then(function(){return R});function Z(N,ue,ce){var ve=Promise.resolve();return ue.forEach(function(Fe){ve=ve.then(function(){return f(Fe,ce)}).then(function(ie){ie&&N.appendChild(ie)})}),ve}}function w(W,R){if(!(R instanceof Element))return R;return Promise.resolve().then(G).then(z).then(Z).then(N).then(function(){return R});function G(){ue(window.getComputedStyle(W),R.style);function ue(ce,ve){ce.cssText?ve.cssText=ce.cssText:Fe(ce,ve);function Fe(ie,he){e.asArray(ie).forEach(function(O){he.setProperty(O,ie.getPropertyValue(O),ie.getPropertyPriority(O))})}}}function z(){[":before",":after"].forEach(function(ce){ue(ce)});function ue(ce){var ve=window.getComputedStyle(W,ce),Fe=ve.getPropertyValue("content");if(Fe===""||Fe==="none")return;var ie=e.uid();R.className=R.className+" "+ie;var he=document.createElement("style");he.appendChild(O(ie,ce,ve)),R.appendChild(he);function O(K,ee,Q){var ge="."+K+":"+ee,Le=Q.cssText?ua(Q):Mt(Q);return document.createTextNode(ge+"{"+Le+"}");function ua(Je){var Ue=Je.getPropertyValue("content");return Je.cssText+" content: "+Ue+";"}function Mt(Je){return e.asArray(Je).map(Ue).join("; ")+";";function Ue(St){return St+": "+Je.getPropertyValue(St)+(Je.getPropertyPriority(St)?" !important":"")}}}}}function Z(){W instanceof HTMLTextAreaElement&&(R.innerHTML=W.value),W instanceof HTMLInputElement&&R.setAttribute("value",W.value)}function N(){R instanceof SVGElement&&(R.setAttribute("xmlns","http://www.w3.org/2000/svg"),R instanceof SVGRectElement&&["width","height"].forEach(function(ue){var ce=R.getAttribute(ue);!ce||R.style.setProperty(ue,ce)}))}}}function b(g){return n.resolveAll().then(function(p){var v=document.createElement("style");return g.appendChild(v),v.appendChild(document.createTextNode(p)),g})}function y(g){return i.inlineAll(g).then(function(){return g})}function _(g,p,v){return Promise.resolve(g).then(function(E){return E.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(E)}).then(e.escapeXhtml).then(function(E){return'<foreignObject x="0" y="0" width="100%" height="100%">'+E+"</foreignObject>"}).then(function(E){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+p+'" height="'+v+'">'+E+"</svg>"}).then(function(E){return"data:image/svg+xml;charset=utf-8,"+E})}function D(){return{escape:N,parseExtension:p,mimeType:v,dataAsUrl:Z,isDataUrl:E,canvasToBlob:w,resolveUrl:W,getAndEncode:z,uid:R(),delay:ue,asArray:ce,escapeXhtml:ve,makeImage:G,width:Fe,height:ie};function g(){var O="application/font-woff",K="image/jpeg";return{woff:O,woff2:O,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:K,jpeg:K,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function p(O){var K=/\.([^\.\/]*?)$/g.exec(O);return K?K[1]:""}function v(O){var K=p(O).toLowerCase();return g()[K]||""}function E(O){return O.search(/^(data:)/)!==-1}function H(O){return new Promise(function(K){for(var ee=window.atob(O.toDataURL().split(",")[1]),Q=ee.length,ge=new Uint8Array(Q),Le=0;Le<Q;Le++)ge[Le]=ee.charCodeAt(Le);K(new Blob([ge],{type:"image/png"}))})}function w(O){return O.toBlob?new Promise(function(K){O.toBlob(K)}):H(O)}function W(O,K){var ee=document.implementation.createHTMLDocument(),Q=ee.createElement("base");ee.head.appendChild(Q);var ge=ee.createElement("a");return ee.body.appendChild(ge),Q.href=K,ge.href=O,ge.href}function R(){var O=0;return function(){return"u"+K()+O++;function K(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function G(O){return new Promise(function(K,ee){var Q=new Image;Q.onload=function(){K(Q)},Q.onerror=ee,Q.src=O})}function z(O){var K=3e4;return o.impl.options.cacheBust&&(O+=(/\?/.test(O)?"&":"?")+new Date().getTime()),new Promise(function(ee){var Q=new XMLHttpRequest;Q.onreadystatechange=ua,Q.ontimeout=Mt,Q.responseType="blob",Q.timeout=K,Q.open("GET",O,!0),Q.send();var ge;if(o.impl.options.imagePlaceholder){var Le=o.impl.options.imagePlaceholder.split(/,/);Le&&Le[1]&&(ge=Le[1])}function ua(){if(Q.readyState===4){if(Q.status!==200){ge?ee(ge):Je("cannot fetch resource: "+O+", status: "+Q.status);return}var Ue=new FileReader;Ue.onloadend=function(){var St=Ue.result.split(/,/)[1];ee(St)},Ue.readAsDataURL(Q.response)}}function Mt(){ge?ee(ge):Je("timeout of "+K+"ms occured while fetching resource: "+O)}function Je(Ue){console.error(Ue),ee("")}})}function Z(O,K){return"data:"+K+";base64,"+O}function N(O){return O.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function ue(O){return function(K){return new Promise(function(ee){setTimeout(function(){ee(K)},O)})}}function ce(O){for(var K=[],ee=O.length,Q=0;Q<ee;Q++)K.push(O[Q]);return K}function ve(O){return O.replace(/#/g,"%23").replace(/\n/g,"%0A")}function Fe(O){var K=he(O,"border-left-width"),ee=he(O,"border-right-width");return O.scrollWidth+K+ee}function ie(O){var K=he(O,"border-top-width"),ee=he(O,"border-bottom-width");return O.scrollHeight+K+ee}function he(O,K){var ee=window.getComputedStyle(O).getPropertyValue(K);return parseFloat(ee.replace("px",""))}}function I(){var g=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:H,shouldProcess:p,impl:{readUrls:v,inline:E}};function p(w){return w.search(g)!==-1}function v(w){for(var W=[],R;(R=g.exec(w))!==null;)W.push(R[1]);return W.filter(function(G){return!e.isDataUrl(G)})}function E(w,W,R,G){return Promise.resolve(W).then(function(Z){return R?e.resolveUrl(Z,R):Z}).then(G||e.getAndEncode).then(function(Z){return e.dataAsUrl(Z,e.mimeType(W))}).then(function(Z){return w.replace(z(W),"$1"+Z+"$3")});function z(Z){return new RegExp(`(url\\(['"]?)(`+e.escape(Z)+`)(['"]?\\))`,"g")}}function H(w,W,R){if(G())return Promise.resolve(w);return Promise.resolve(w).then(v).then(function(z){var Z=Promise.resolve(w);return z.forEach(function(N){Z=Z.then(function(ue){return E(ue,N,W,R)})}),Z});function G(){return!p(w)}}}function T(){return{resolveAll:g,impl:{readAll:p}};function g(){return p(document).then(function(v){return Promise.all(v.map(function(E){return E.resolve()}))}).then(function(v){return v.join(`
`)})}function p(){return Promise.resolve(e.asArray(document.styleSheets)).then(E).then(v).then(function(w){return w.map(H)});function v(w){return w.filter(function(W){return W.type===CSSRule.FONT_FACE_RULE}).filter(function(W){return a.shouldProcess(W.style.getPropertyValue("src"))})}function E(w){var W=[];return w.forEach(function(R){try{e.asArray(R.cssRules||[]).forEach(W.push.bind(W))}catch(G){console.log("Error while reading CSS rules from "+R.href,G.toString())}}),W}function H(w){return{resolve:function(){var R=(w.parentStyleSheet||{}).href;return a.inlineAll(w.cssText,R)},src:function(){return w.style.getPropertyValue("src")}}}}}function k(){return{inlineAll:p,impl:{newImage:g}};function g(v){return{inline:E};function E(H){return e.isDataUrl(v.src)?Promise.resolve():Promise.resolve(v.src).then(H||e.getAndEncode).then(function(w){return e.dataAsUrl(w,e.mimeType(v.src))}).then(function(w){return new Promise(function(W,R){v.onload=W,v.onerror=R,v.src=w})})}}function p(v){if(!(v instanceof Element))return Promise.resolve(v);return E(v).then(function(){return v instanceof HTMLImageElement?g(v).inline():Promise.all(e.asArray(v.childNodes).map(function(H){return p(H)}))});function E(H){var w=H.style.getPropertyValue("background");return w?a.inlineAll(w).then(function(W){H.style.setProperty("background",W,H.style.getPropertyPriority("background"))}).then(function(){return H}):Promise.resolve(H)}}}})(xs)});var _a=Ts((_i,ki)=>{(function(t,e){typeof _i=="object"&&typeof ki<"u"?ki.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t["fast-copy"]=e())})(_i,function(){"use strict";var t=Function.prototype.toString,e=Object.create,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,o=Object.getPrototypeOf,r=Object.prototype,c=r.hasOwnProperty,d=r.propertyIsEnumerable,l=typeof s=="function",m=typeof WeakMap=="function",u=function(){if(m)return function(){return new WeakMap};var k=function(){function g(){this._keys=[],this._values=[]}return g.prototype.has=function(p){return!!~this._keys.indexOf(p)},g.prototype.get=function(p){return this._values[this._keys.indexOf(p)]},g.prototype.set=function(p,v){this._keys.push(p),this._values.push(v)},g}();return function(){return new k}}(),h=function(k,g){var p=k.__proto__||o(k);if(!p)return e(null);var v=p.constructor;if(v===g.Object)return p===g.Object.prototype?{}:e(p);if(~t.call(v).indexOf("[native code]"))try{return new v}catch{}return e(p)},f=function(k,g,p,v){var E=h(k,g);v.set(k,E);for(var H in k)c.call(k,H)&&(E[H]=p(k[H],v));if(l)for(var w=s(k),W=0,R=w.length,G=void 0;W<R;++W)G=w[W],d.call(k,G)&&(E[G]=p(k[G],v));return E},b=function(k,g,p,v){var E=h(k,g);v.set(k,E);for(var H=l?i(k).concat(s(k)):i(k),w=0,W=H.length,R=void 0,G=void 0;w<W;++w)if(R=H[w],R!=="callee"&&R!=="caller")if(G=n(k,R),G){!G.get&&!G.set&&(G.value=p(k[R],v));try{a(E,R,G)}catch{E[R]=G.value}}else E[R]=p(k[R],v);return E},y=function(k){var g="";return k.global&&(g+="g"),k.ignoreCase&&(g+="i"),k.multiline&&(g+="m"),k.unicode&&(g+="u"),k.sticky&&(g+="y"),g},_=Array.isArray,D=Object.getPrototypeOf,I=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function T(k,g){var p=!!(g&&g.isStrict),v=g&&g.realm||I,E=p?b:f,H=function(w,W){if(!w||typeof w!="object")return w;if(W.has(w))return W.get(w);var R=w.__proto__||D(w),G=R&&R.constructor;if(!G||G===v.Object)return E(w,v,H,W);var z;if(_(w)){if(p)return b(w,v,H,W);z=new G,W.set(w,z);for(var Z=0,N=w.length;Z<N;++Z)z[Z]=H(w[Z],W);return z}if(w instanceof v.Date)return new G(w.getTime());if(w instanceof v.RegExp)return z=new G(w.source,w.flags||y(w)),z.lastIndex=w.lastIndex,z;if(v.Map&&w instanceof v.Map)return z=new G,W.set(w,z),w.forEach(function(ue,ce){z.set(ce,H(ue,W))}),z;if(v.Set&&w instanceof v.Set)return z=new G,W.set(w,z),w.forEach(function(ue){z.add(H(ue,W))}),z;if(v.Blob&&w instanceof v.Blob)return w.slice(0,w.size,w.type);if(v.Buffer&&v.Buffer.isBuffer(w))return z=v.Buffer.allocUnsafe?v.Buffer.allocUnsafe(w.length):new G(w.length),W.set(w,z),w.copy(z),z;if(v.ArrayBuffer){if(v.ArrayBuffer.isView(w))return z=new G(w.buffer.slice(0)),W.set(w,z),z;if(w instanceof v.ArrayBuffer)return z=w.slice(0),W.set(w,z),z}return typeof w.then=="function"||w instanceof Error||v.WeakMap&&w instanceof v.WeakMap||v.WeakSet&&w instanceof v.WeakSet?w:E(w,v,H,W)};return H(k,u())}return T.default=T,T.strict=function(g,p){return T(g,{isStrict:!0,realm:p?p.realm:void 0})},T})});var Tm={};wc(Tm,{default:()=>Rn});module.exports=Tc(Tm);var Be=require("obsidian"),hc=ma(As());var Cc=[{name:"Aboleth",size:"Large",type:"aberration",subtype:"",alignment:"lawful evil",ac:17,hp:135,hit_dice:"18d10 + 36",speed:"10 ft., swim 40 ft.",stats:[21,9,15,18,15,18],saves:[{constitution:6},{intelligence:8},{wisdom:6}],skillsaves:[{history:12},{perception:10}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 20",languages:"Deep Speech, telepathy 120 ft.",cr:"10",traits:[{name:"Amphibious",desc:"The aboleth can breathe air and water.",attack_bonus:0},{name:"Mucous Cloud",desc:"While underwater, the aboleth is surrounded by transformative mucus. A creature that touches the aboleth or that hits it with a melee attack while within 5 ft. of it must make a DC 14 Constitution saving throw. On a failure, the creature is diseased for 1d4 hours. The diseased creature can breathe only underwater.",attack_bonus:0},{name:"Probing Telepathy",desc:"If a creature communicates telepathically with the aboleth, the aboleth learns the creature's greatest desires if the aboleth can see the creature.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The aboleth makes three tentacle attacks.",attack_bonus:0},{name:"Tentacle",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 12 (2d6 + 5) bludgeoning damage. If the target is a creature, it must succeed on a DC 14 Constitution saving throw or become diseased. The disease has no effect for 1 minute and can be removed by any magic that cures disease. After 1 minute, the diseased creature's skin becomes translucent and slimy, the creature can't regain hit points unless it is underwater, and the disease can be removed only by heal or another disease-curing spell of 6th level or higher. When the creature is outside a body of water, it takes 6 (1d12) acid damage every 10 minutes unless moisture is applied to the skin before 10 minutes have passed.",attack_bonus:9,damage_dice:"2d6",damage_bonus:5},{name:"Tail",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft. one target. Hit: 15 (3d6 + 5) bludgeoning damage.",attack_bonus:9,damage_dice:"3d6",damage_bonus:5},{name:"Enslave (3/day)",desc:"The aboleth targets one creature it can see within 30 ft. of it. The target must succeed on a DC 14 Wisdom saving throw or be magically charmed by the aboleth until the aboleth dies or until it is on a different plane of existence from the target. The charmed target is under the aboleth's control and can't take reactions, and the aboleth and the target can communicate telepathically with each other over any distance.\\nWhenever the charmed target takes damage, the target can repeat the saving throw. On a success, the effect ends. No more than once every 24 hours, the target can also repeat the saving throw when it is at least 1 mile away from the aboleth.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The aboleth makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Swipe",desc:"The aboleth makes one tail attack.",attack_bonus:0},{name:"Psychic Drain (Costs 2 Actions)",desc:"One creature charmed by the aboleth takes 10 (3d6) psychic damage, and the aboleth regains hit points equal to the damage the creature takes.",attack_bonus:0}]},{name:"Acolyte",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:10,hp:9,hit_dice:"2d8",speed:"30 ft.",stats:[10,10,10,10,14,11],skillsaves:[{medicine:4},{religion:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any one language (usually Common)",cr:"1/4",traits:[],actions:[{name:"Club",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) bludgeoning damage.",attack_bonus:2,damage_dice:"1d4"}],spells:["The acolyte is a 1st-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 12, +4 to hit with spell attacks). The acolyte has following cleric spells prepared:",{"Cantrips (at will)":"light, sacred flame, thaumaturgy"},{"1st level (3 slots)":"bless, cure wounds, sanctuary"}]},{name:"Adult Black Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic evil",ac:19,hp:195,hit_dice:"17d12 + 84",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[23,14,21,14,13,17],saves:[{dexterity:7},{constitution:10},{wisdom:6},{charisma:8}],skillsaves:[null,{perception:11},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 21",languages:"Common, Draconic",cr:"14",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 4 (1d8) acid damage.",attack_bonus:11,damage_dice:"2d10 + 1d8",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Acid Breath (Recharge 5-6)",desc:"The dragon exhales acid in a 60-foot line that is 5 feet wide. Each creature in that line must make a DC 18 Dexterity saving throw, taking 54 (12d8) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Blue Dracolich",size:"Huge",type:"undead",subtype:"",alignment:"lawful evil",ac:19,hp:225,hit_dice:"18d12 + 108",speed:"40 ft., burrow 30 ft., fly 80 ft.",stats:[25,10,23,16,15,19],skillsaves:[{perception:12}],damage_vulnerabilities:"",damage_resistances:"necrotic",damage_immunities:"lightning, poison",condition_immunities:"charmed, exhaustion, frightened, paralyzed, poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"17",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dracolich fails a saving throw, it can choose to succeed instead.",attack_bonus:0},{name:"Magic Resistance",desc:"The dracolich has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dracolich can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +12 to hit, reach 10 ft., one target. Hit: 18 (2d10 + 7) piercing damage plus 5 (1d10) lightning damage.",attack_bonus:12,damage_dice:"2d10 + 1d10",damage_bonus:7},{name:"Claw",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 14 (2d6 + 7) slashing damage.",attack_bonus:12,damage_dice:"2d6",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +12 to hit, reach 15 ft., one target. Hit: 16 (2d8 + 7) bludgeoning damage.",attack_bonus:12,damage_dice:"2d8",damage_bonus:7},{name:"Frightful Presence",desc:"Each creature of the dracolich's choice that is within 120 feet of the dracolich and aware of it must succeed on a DC 18 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dracolich's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Lightning Breath (Recharge 5-6)",desc:"The dracolich exhales lightning in a 90-foot line that is 5 feet wide. Each creature in that line must make a DC 20 Dexterity saving throw, taking 66 (12d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d10"}],legendary_actions:[{name:"Detect",desc:"The dracolich makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dracolich makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dracolich beats its tattered wings. Each creature within 10 ft. of the dracolich must succeed on a DC 21 Dexterity saving throw or take 14 (2d6 + 7) bludgeoning damage and be knocked prone. After beating its wings this way, the dracolich can fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Blue Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"lawful evil",ac:19,hp:225,hit_dice:"18d12 + 108",speed:"40 ft., burrow 30 ft., fly 80 ft.",stats:[25,10,23,16,15,19],saves:[{dexterity:5},{constitution:11},{wisdom:7},{charisma:9}],skillsaves:[null,{perception:12},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"16",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +12 to hit, reach 10 ft., one target. Hit: 18 (2d10 + 7) piercing damage plus 5 (1d10) lightning damage.",attack_bonus:12,damage_dice:"2d10 + 1d10",damage_bonus:7},{name:"Claw",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 14 (2d6 + 7) slashing damage.",attack_bonus:12,damage_dice:"2d6",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +12 to hit, reach 15 ft., one target. Hit: 16 (2d8 + 7) bludgeoning damage.",attack_bonus:12,damage_dice:"2d8",damage_bonus:7},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 ft. of the dragon and aware of it must succeed on a DC 17 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Lightning Breath (Recharge 5-6)",desc:"The dragon exhales lightning in a 90-foot line that is 5 ft. wide. Each creature in that line must make a DC 19 Dexterity saving throw, taking 66 (12d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d10"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 20 Dexterity saving throw or take 14 (2d6 + 7) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Brass Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic good",ac:18,hp:172,hit_dice:"15d12 + 74",speed:"40 ft., burrow 40 ft., fly 80 ft.",stats:[23,10,21,14,13,17],saves:[{dexterity:5},{constitution:10},{wisdom:6},{charisma:8}],skillsaves:[null,{history:7},{persuasion:8},{perception:11},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 21",languages:"Common, Draconic",cr:"13",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach,.0 ft., one target. Hit: 17 (2d10 + 6) piercing damage.",attack_bonus:11,damage_dice:"2d10",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nFire Breath. The dragon exhales fire in an 60-foot line that is 5 feet wide. Each creature in that line must make a DC 18 Dexterity saving throw, taking 45 (13d6) fire damage on a failed save, or half as much damage on a successful one.\\nSleep Breath. The dragon exhales sleep gas in a 60-foot cone. Each creature in that area must succeed on a DC 18 Constitution saving throw or fall unconscious for 10 minutes. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.",attack_bonus:0,damage_dice:"13d6"}]},{name:"Adult Bronze Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"lawful good",ac:19,hp:212,hit_dice:"17d12 + 101",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[25,10,23,16,15,19],saves:[{dexterity:5},{constitution:11},{wisdom:7},{charisma:9}],skillsaves:[{insight:7},{perception:12},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"15",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +12 to hit, reach 10 ft., one target. Hit: 18 (2d10 + 7) piercing damage.",attack_bonus:12,damage_dice:"2d10",damage_bonus:7},{name:"Claw",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 14 (2d6 + 7) slashing damage.",attack_bonus:12,damage_dice:"2d6",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +12 to hit, reach 15 ft., one target. Hit: 16 (2d8 + 7) bludgeoning damage.",attack_bonus:12,damage_dice:"2d8",damage_bonus:7},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 17 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nLightning Breath. The dragon exhales lightning in a 90-foot line that is 5 feet wide. Each creature in that line must make a DC 19 Dexterity saving throw, taking 66 (12d10) lightning damage on a failed save, or half as much damage on a successful one.\\nRepulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 19 Strength saving throw. On a failed save, the creature is pushed 60 feet away from the dragon.",attack_bonus:0,damage_dice:"12d10"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 20 Dexterity saving throw or take 14 (2d6 + 7) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Copper Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic good",ac:18,hp:184,hit_dice:"16d12 + 80",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[23,12,21,18,15,17],saves:[{dexterity:6},{constitution:10},{wisdom:7},{charisma:8}],skillsaves:[{deception:8},{perception:12},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"14",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage.",attack_bonus:11,damage_dice:"2d10",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nAcid Breath. The dragon exhales acid in an 60-foot line that is 5 feet wide. Each creature in that line must make a DC 18 Dexterity saving throw, taking 54 (12d8) acid damage on a failed save, or half as much damage on a successful one.\\nSlowing Breath. The dragon exhales gas in a 60-foot cone. Each creature in that area must succeed on a DC 18 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.",attack_bonus:0,damage_dice:"12d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Gold Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"lawful good",ac:19,hp:256,hit_dice:"19d12 + 132",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[27,14,25,16,15,24],saves:[{dexterity:8},{constitution:13},{wisdom:8},{charisma:13}],skillsaves:[{insight:8},{persuasion:13},{perception:14},{stealth:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 24",languages:"Common, Draconic",cr:"17",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 19 (2d10 + 8) piercing damage.",attack_bonus:14,damage_dice:"2d10",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 5 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 21 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nFire Breath. The dragon exhales fire in a 60-foot cone. Each creature in that area must make a DC 21 Dexterity saving throw, taking 66 (12d10) fire damage on a failed save, or half as much damage on a successful one.\\nWeakening Breath. The dragon exhales gas in a 60-foot cone. Each creature in that area must succeed on a DC 21 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"12d10"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Green Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"lawful evil",ac:19,hp:207,hit_dice:"18d12 + 90",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[23,12,21,18,15,17],saves:[{dexterity:6},{constitution:10},{wisdom:7},{charisma:8}],skillsaves:[{deception:8},{insight:7},{persuasion:8},{perception:12},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 22",languages:"Common, Draconic",cr:"15",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 7 (2d6) poison damage.",attack_bonus:11,damage_dice:"2d10 + 2d6",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours .",attack_bonus:0},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 60-foot cone. Each creature in that area must make a DC 18 Constitution saving throw, taking 56 (16d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d6"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Red Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic evil",ac:19,hp:256,hit_dice:"19d12 + 132",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[27,10,25,16,13,21],saves:[{dexterity:6},{constitution:13},{wisdom:7},{charisma:11}],skillsaves:[{perception:13},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 23",languages:"Common, Draconic",cr:"17",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 7 (2d6) fire damage.",attack_bonus:14,damage_dice:"2d10 + 2d6",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 5 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 ft. of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon exhales fire in a 60-foot cone. Each creature in that area must make a DC 21 Dexterity saving throw, taking 63 (18d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"18d6"},{name:"Lair Actions",desc:"On initiative count 20 (losing initiative ties), the dragon takes a lair action to cause one of the following effects: the dragon can't use the same effect two rounds in a row:\\n\u2022 Magma erupts from a point on the ground the dragon can see within 120 feet of it, creating a 20-foot-high, 5-foot-radius geyser. Each creature in the geyser's area must make a DC 15 Dexterity saving throw, taking 21 (6d6) fire damage on a failed save, or half as much damage on a successful one.\\n\u2022 A tremor shakes the lair in a 60-foot-radius around the dragon. Each creature other than the dragon on the ground in that area must succeed on a DC 15 Dexterity saving throw or be knocked prone.\\n\u2022 Volcanic gases form a cloud in a 20-foot-radius sphere centered on a point the dragon can see within 120 feet of it. The sphere spreads around corners, and its area is lightly obscured. It lasts until initiative count 20 on the next round. Each creature that starts its turn in the cloud must succeed on a DC 13 Constitution saving throw or be poisoned until the end of its turn. While poisoned in this way, a creature is incapacitated.",attack_bonus:0,damage_dice:"6d6"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult Silver Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"lawful good",ac:19,hp:243,hit_dice:"18d12 + 126",speed:"40 ft., fly 80 ft.",stats:[27,10,25,16,13,21],saves:[{dexterity:5},{constitution:12},{wisdom:6},{charisma:10}],skillsaves:[{arcana:8},{history:8},{perception:11},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 21",languages:"Common, Draconic",cr:"16",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +13 to hit, reach 10 ft., one target. Hit: 19 (2d10 + 8) piercing damage.",attack_bonus:13,damage_dice:"2d10",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +13 to hit, reach 5 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:13,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +13 to hit, reach 15 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:13,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 18 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nCold Breath. The dragon exhales an icy blast in a 60-foot cone. Each creature in that area must make a DC 20 Constitution saving throw, taking 58 (13d8) cold damage on a failed save, or half as much damage on a successful one.\\nParalyzing Breath. The dragon exhales paralyzing gas in a 60-foot cone. Each creature in that area must succeed on a DC 20 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"13d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Adult White Dragon",size:"Huge",type:"dragon",subtype:"",alignment:"chaotic evil",ac:18,hp:200,hit_dice:"16d12 + 96",speed:"40 ft., burrow 30 ft., fly 80 ft., swim 40 ft.",stats:[22,10,22,8,12,12],saves:[{dexterity:5},{constitution:11},{wisdom:6},{charisma:6}],skillsaves:[{perception:11},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 21",languages:"Common, Draconic",cr:"13",traits:[{name:"Ice Walk",desc:"The dragon can move across and climb icy surfaces without needing to make an ability check. Additionally, difficult terrain composed of ice or snow doesn't cost it extra moment.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 4 (1d8) cold damage.",attack_bonus:11,damage_dice:"2d10 + 1d8",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:11,damage_dice:"2d6",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 15 (2d8 + 6) bludgeoning damage.",attack_bonus:11,damage_dice:"2d8",damage_bonus:6},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 ft. of the dragon and aware of it must succeed on a DC 14 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Cold Breath (Recharge 5-6)",desc:"The dragon exhales an icy blast in a 60-foot cone. Each creature in that area must make a DC 19 Constitution saving throw, taking 54 (12d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d8"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 10 ft. of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6 + 6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Air Elemental",size:"Large",type:"elemental",subtype:"",alignment:"neutral",ac:15,hp:90,hit_dice:"12d10 + 24",speed:"fly 90 ft. (hover)",stats:[14,20,14,6,10,6],damage_vulnerabilities:"",damage_resistances:"lightning; thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 10",languages:"Auran",cr:"5",traits:[{name:"Air Form",desc:"The elemental can enter a hostile creature's space and stop there. It can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The elemental makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 14 (2d8 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"2d8",damage_bonus:5},{name:"Whirlwind (Recharge 4-6)",desc:"Each creature in the elemental's space must make a DC 13 Strength saving throw. On a failure, a target takes 15 (3d8 + 2) bludgeoning damage and is flung up 20 feet away from the elemental in a random direction and knocked prone. If a thrown target strikes an object, such as a wall or floor, the target takes 3 (1d6) bludgeoning damage for every 10 feet it was thrown. If the target is thrown at another creature, that creature must succeed on a DC 13 Dexterity saving throw or take the same damage and be knocked prone.\\nIf the saving throw is successful, the target takes half the bludgeoning damage and isn't flung away or knocked prone.",attack_bonus:0}]},{name:"Ancient Black Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic evil",ac:22,hp:367,hit_dice:"21d20 + 146",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[27,14,25,16,15,19],saves:[{dexterity:9},{constitution:14},{wisdom:9},{charisma:11}],skillsaves:[{perception:16},{stealth:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 26",languages:"Common, Draconic",cr:"21",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack:+ 15 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 9 (2d8) acid damage.",attack_bonus:15,damage_dice:"2d10 + 2d8",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +15 to hit, reach 10 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:15,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +15 to hit, reach 20 ft ., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:15,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Acid Breath (Recharge 5-6)",desc:"The dragon exhales acid in a 90-foot line that is 10 feet wide. Each creature in that line must make a DC 22 Dexterity saving throw, taking 67 (15d8) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 23 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Blue Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful evil",ac:22,hp:481,hit_dice:"26d20 + 208",speed:"40 ft., burrow 40 ft., fly 80 ft.",stats:[29,10,27,18,17,21],saves:[{dexterity:7},{constitution:15},{wisdom:10},{charisma:12}],skillsaves:[{perception:17},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"23",actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +16 to hit, reach 15 ft., one target. Hit: 20 (2d10 + 9) piercing damage plus 11 (2d10) lightning damage.",attack_bonus:16,damage_dice:"2d10 + 2d10",damage_bonus:9},{name:"Claw",desc:"Melee Weapon Attack: +16 to hit, reach 10 ft., one target. Hit: 16 (2d6 + 9) slashing damage.",attack_bonus:16,damage_dice:"2d6",damage_bonus:9},{name:"Tail",desc:"Melee Weapon Attack: +16 to hit, reach 20 ft., one target. Hit: 18 (2d8 + 9) bludgeoning damage.",attack_bonus:16,damage_dice:"2d8",damage_bonus:9},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 20 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Lightning Breath (Recharge 5-6)",desc:"The dragon exhales lightning in a 120-foot line that is 10 feet wide. Each creature in that line must make a DC 23 Dexterity saving throw, taking 88 (16d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d10"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 24 Dexterity saving throw or take 16 (2d6 + 9) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Brass Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic good",ac:20,hp:297,hit_dice:"17d20 + 118",speed:"40 ft., burrow 40 ft., fly 80 ft.",stats:[27,10,25,16,15,19],saves:[{dexterity:6},{constitution:13},{wisdom:8},{charisma:10}],skillsaves:[{history:9},{persuasion:10},{perception:14},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 24",languages:"Common, Draconic",cr:"20",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage.",attack_bonus:14,damage_dice:"2d10",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 20 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 18 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons:\\nFire Breath. The dragon exhales fire in an 90-foot line that is 10 feet wide. Each creature in that line must make a DC 21 Dexterity saving throw, taking 56 (16d6) fire damage on a failed save, or half as much damage on a successful one.\\nSleep Breath. The dragon exhales sleep gas in a 90-foot cone. Each creature in that area must succeed on a DC 21 Constitution saving throw or fall unconscious for 10 minutes. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.",attack_bonus:0,damage_dice:"16d6"},{name:"Change Shape",desc:"The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).\\nIn a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 22 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Bronze Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful good",ac:22,hp:444,hit_dice:"24d20 + 192",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[29,10,27,18,17,21],saves:[{dexterity:7},{constitution:15},{wisdom:10},{charisma:12}],skillsaves:[{insight:10},{perception:17},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"22",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +16 to hit, reach 15 ft., one target. Hit: 20 (2d10 + 9) piercing damage.",attack_bonus:16,damage_dice:"2d10",damage_bonus:9},{name:"Claw",desc:"Melee Weapon Attack: +16 to hit, reach 10 ft., one target. Hit: 16 (2d6 + 9) slashing damage.",attack_bonus:16,damage_dice:"1d6",damage_bonus:9},{name:"Tail",desc:"Melee Weapon Attack: +16 to hit, reach 20 ft., one target. Hit: 18 (2d8 + 9) bludgeoning damage.",attack_bonus:0,damage_dice:"2d8",damage_bonus:9},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 20 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nLightning Breath. The dragon exhales lightning in a 120-foot line that is 10 feet wide. Each creature in that line must make a DC 23 Dexterity saving throw, taking 88 (16d10) lightning damage on a failed save, or half as much damage on a successful one.\\nRepulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 23 Strength saving throw. On a failed save, the creature is pushed 60 feet away from the dragon.",attack_bonus:0,damage_dice:"16d10"},{name:"Change Shape",desc:"The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).\\nIn a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 24 Dexterity saving throw or take 16 (2d6 + 9) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Copper Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic good",ac:21,hp:350,hit_dice:"20d20 + 140",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[27,12,25,20,17,19],saves:[{dexterity:8},{constitution:14},{wisdom:10},{charisma:11}],skillsaves:[{stealth:8},{perception:17},{deception:11}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"21",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +15 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage.",attack_bonus:15,damage_dice:"2d10",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +15 to hit, reach 10 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:15,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +15 to hit, reach 20 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:15,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nAcid Breath. The dragon exhales acid in an 90-foot line that is 10 feet wide. Each creature in that line must make a DC 22 Dexterity saving throw, taking 63 (14d8) acid damage on a failed save, or half as much damage on a successful one.\\nSlowing Breath. The dragon exhales gas in a 90-foot cone. Each creature in that area must succeed on a DC 22 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.",attack_bonus:0,damage_dice:"14d8"},{name:"Change Shape",desc:"The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).\\nIn a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 23 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Gold Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful good",ac:22,hp:546,hit_dice:"28d20 + 252",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[30,14,29,18,17,28],saves:[{dexterity:9},{constitution:16},{wisdom:10},{charisma:16}],skillsaves:[{persuasion:16},{stealth:9},{perception:17},{insight:10}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"24",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +17 to hit, reach 15 ft., one target. Hit: 21 (2d10 + 10) piercing damage.",attack_bonus:17,damage_dice:"2d10",damage_bonus:10},{name:"Claw",desc:"Melee Weapon Attack: +17 to hit, reach 10 ft., one target. Hit: 17 (2d6 + 10) slashing damage.",attack_bonus:17,damage_dice:"2d6",damage_bonus:10},{name:"Tail",desc:"Melee Weapon Attack: +17 to hit, reach 20 ft., one target. Hit: 19 (2d8 + 10) bludgeoning damage.",attack_bonus:17,damage_dice:"2d8",damage_bonus:10},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 24 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nFire Breath. The dragon exhales fire in a 90-foot cone. Each creature in that area must make a DC 24 Dexterity saving throw, taking 71 (13d10) fire damage on a failed save, or half as much damage on a successful one.\\nWeakening Breath. The dragon exhales gas in a 90-foot cone. Each creature in that area must succeed on a DC 24 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"13d10"},{name:"Change Shape",desc:"The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).\\nIn a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 25 Dexterity saving throw or take 17 (2d6 + 10) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Green Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful evil",ac:21,hp:385,hit_dice:"22d20 + 154",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[27,12,25,20,17,19],saves:[{dexterity:8},{constitution:14},{wisdom:10},{charisma:11}],skillsaves:[{deception:11},{insight:10},{perception:17},{persuasion:11},{stealth:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 27",languages:"Common, Draconic",cr:"22",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +15 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 10 (3d6) poison damage.",attack_bonus:15,damage_dice:"2d10 + 3d6",damage_bonus:9},{name:"Claw",desc:"Melee Weapon Attack: +15 to hit, reach 10 ft., one target. Hit: 22 (4d6 + 8) slashing damage.",attack_bonus:15,damage_dice:"4d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +15 to hit, reach 20 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:16,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 90-foot cone. Each creature in that area must make a DC 22 Constitution saving throw, taking 77 (22d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"22d6"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 23 Dexterity saving throw or take 15 (2d6 + 8) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Red Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic evil",ac:22,hp:546,hit_dice:"28d20 + 252",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[30,10,29,18,15,23],saves:[{dexterity:7},{constitution:16},{wisdom:9},{charisma:13}],skillsaves:[{perception:16},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 26",languages:"Common, Draconic",cr:"24",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +17 to hit, reach 15 ft., one target. Hit: 21 (2d10 + 10) piercing damage plus 14 (4d6) fire damage.",attack_bonus:17,damage_dice:"2d10 + 4d6",damage_bonus:10},{name:"Claw",desc:"Melee Weapon Attack: +17 to hit, reach 10 ft., one target. Hit: 17 (2d6 + 10) slashing damage.",attack_bonus:17,damage_dice:"2d6",damage_bonus:10},{name:"Tail",desc:"Melee Weapon Attack: +17 to hit, reach 20 ft., one target. Hit: 19 (2d8 + 10) bludgeoning damage.",attack_bonus:17,damage_dice:"2d8",damage_bonus:10},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 21 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon exhales fire in a 90-foot cone. Each creature in that area must make a DC 24 Dexterity saving throw, taking 91 (26d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"26d6"}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 25 Dexterity saving throw or take 17 (2d6 + 10) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient Silver Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"lawful good",ac:22,hp:487,hit_dice:"25d20 + 224",speed:"40 ft., fly 80 ft.",stats:[30,10,29,18,15,23],saves:[{dexterity:7},{constitution:16},{wisdom:9},{charisma:13}],skillsaves:[{arcana:11},{perception:16},{history:11},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 26",languages:"Common, Draconic",cr:"23",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +17 to hit, reach 15 ft., one target. Hit: 21 (2d10 + 10) piercing damage.",attack_bonus:17,damage_dice:"2d10",damage_bonus:10},{name:"Claw",desc:"Melee Weapon Attack: +17 to hit, reach 10 ft., one target. Hit: 17 (2d6 + 10) slashing damage.",attack_bonus:17,damage_dice:"2d6",damage_bonus:10},{name:"Tail",desc:"Melee Weapon Attack: +17 to hit, reach 20 ft., one target. Hit: 19 (2d8 + 10) bludgeoning damage.",attack_bonus:17,damage_dice:"2d8",damage_bonus:10},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 21 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nCold Breath. The dragon exhales an icy blast in a 90-foot cone. Each creature in that area must make a DC 24 Constitution saving throw, taking 67 (15d8) cold damage on a failed save, or half as much damage on a successful one.\\nParalyzing Breath. The dragon exhales paralyzing gas in a 90- foot cone. Each creature in that area must succeed on a DC 24 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"15d8"},{name:"Change Shape",desc:"The dragon magically polymorphs into a humanoid or beast that has a challenge rating no higher than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the dragon's choice).\\nIn a new form, the dragon retains its alignment, hit points, Hit Dice, ability to speak, proficiencies, Legendary Resistance, lair actions, and Intelligence, Wisdom, and Charisma scores, as well as this action. Its statistics and capabilities are otherwise replaced by those of the new form, except any class features or legendary actions of that form.",attack_bonus:0}],legendary_actions:[{name:"Detect",desc:"The dragon makes a Wisdom (Perception) check.",attack_bonus:0},{name:"Tail Attack",desc:"The dragon makes a tail attack.",attack_bonus:0},{name:"Wing Attack (Costs 2 Actions)",desc:"The dragon beats its wings. Each creature within 15 ft. of the dragon must succeed on a DC 25 Dexterity saving throw or take 17 (2d6 + 10) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.",attack_bonus:0}]},{name:"Ancient White Dragon",size:"Gargantuan",type:"dragon",subtype:"",alignment:"chaotic evil",ac:20,hp:333,hit_dice:"18d20 + 144",speed:"40 ft., burrow 40 ft., fly 80 ft., swim 40 ft.",stats:[26,10,26,10,13,14],saves:[{dexterity:6},{constitution:14},{wisdom:7},{charisma:8}],skillsaves:[{perception:13},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 23",languages:"Common, Draconic",cr:"20",traits:[{name:"Ice Walk",desc:"The dragon can move across and climb icy surfaces without needing to make an ability check. Additionally, difficult terrain composed of ice or snow doesn't cost it extra moment.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the dragon fails a saving throw, it can choose to succeed instead.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 9 (2d8) cold damage.",attack_bonus:14,damage_dice:"2d10 + 2d8",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 20 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Frightful Presence",desc:"Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours .",attack_bonus:0},{name:"Cold Breath (Recharge 5-6)",desc:"The dragon exhales an icy blast in a 90-foot cone. Each creature in that area must make a DC 22 Constitution saving throw, taking 72 (l6d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d8"}]},{name:"Androsphinx",size:"Large",type:"monstrosity",subtype:"",alignment:"lawful neutral",ac:17,hp:199,hit_dice:"19d10 + 94",speed:"40 ft., fly 60 ft.",stats:[22,10,20,16,18,23],saves:[{dexterity:6},{constitution:11},{intelligence:9},{wisdom:10}],skillsaves:[{religion:15},{perception:10},{arcana:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"psychic; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"charmed, frightened",senses:"truesight 120 ft., passive Perception 20",languages:"Common, Sphinx",cr:"17",traits:[{name:"Inscrutable",desc:"The sphinx is immune to any effect that would sense its emotions or read its thoughts, as well as any divination spell that it refuses. Wisdom (Insight) checks made to ascertain the sphinx's intentions or sincerity have disadvantage.",attack_bonus:0},{name:"Magic Weapons",desc:"The sphinx's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The sphinx makes two claw attacks.",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 17 (2d10 + 6) slashing damage.",attack_bonus:12,damage_dice:"2d10",damage_bonus:6},{name:"Roar (3/Day)",desc:"The sphinx emits a magical roar. Each time it roars before finishing a long rest, the roar is louder and the effect is different, as detailed below. Each creature within 500 feet of the sphinx and able to hear the roar must make a saving throw.\\n\\nFirst Roar. Each creature that fails a DC 18 Wisdom saving throw is frightened for 1 minute. A frightened creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\\n\\nSecond Roar. Each creature that fails a DC 18 Wisdom saving throw is deafened and frightened for 1 minute. A frightened creature is paralyzed and can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.\\n\\nThird Roar. Each creature makes a DC 18 Constitution saving throw. On a failed save, a creature takes 44 (8d10) thunder damage and is knocked prone. On a successful save, the creature takes half as much damage and isn't knocked prone.",attack_bonus:0}],legendary_actions:[{name:"Claw Attack",desc:"The sphinx makes one claw attack.",attack_bonus:0},{name:"Teleport (Costs 2 Actions)",desc:"The sphinx magically teleports, along with any equipment it is wearing or carrying, up to 120 feet to an unoccupied space it can see.",attack_bonus:0},{name:"Cast a Spell (Costs 3 Actions)",desc:"The sphinx casts a spell from its list of prepared spells, using a spell slot as normal.",attack_bonus:0}],spells:["The sphinx is a 12th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 18, +10 to hit with spell attacks). It requires no material components to cast its spells. The sphinx has the following cleric spells prepared:",{"Cantrips (at will)":"sacred flame, spare the dying, thaumaturgy"},{"1st level (4 slots)":"command, detect evil and good, detect magic"},{"2nd level (3 slots)":"lesser restoration, zone of truth"},{"3rd level (3 slots)":"dispel magic, tongues"},{"4th level (3 slots)":"banishment, freedom of movement"},{"5th level (2 slots)":"flame strike, greater restoration"},{"6th level (1 slot)":"heroes' feast"}]},{name:"Animated Armor",size:"Medium",type:"construct",subtype:"",alignment:"unaligned",ac:18,hp:33,hit_dice:"6d8 + 6",speed:"25 ft.",stats:[14,11,13,1,3,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison, psychic",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 6",languages:"",cr:"1",traits:[{name:"Antimagic Susceptibility",desc:"The armor is incapacitated while in the area of an antimagic field. If targeted by dispel magic, the armor must succeed on a Constitution saving throw against the caster's spell save DC or fall unconscious for 1 minute.",attack_bonus:0},{name:"False Appearance",desc:"While the armor remains motionless, it is indistinguishable from a normal suit of armor.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The armor makes two melee attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Ankheg",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:14,hp:39,hit_dice:"6d10 + 6",speed:"30 ft., burrow 10 ft.",stats:[17,11,13,1,13,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 11",languages:"",cr:"2",actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage plus 3 (1d6) acid damage. If the target is a Large or smaller creature, it is grappled (escape DC 13). Until this grapple ends, the ankheg can bite only the grappled creature and has advantage on attack rolls to do so.",attack_bonus:5,damage_dice:"2d6 + 1d6",damage_bonus:3},{name:"Acid Spray (Recharge 6)",desc:"The ankheg spits acid in a line that is 30 ft. long and 5 ft. wide, provided that it has no creature grappled. Each creature in that line must make a DC 13 Dexterity saving throw, taking 10 (3d6) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"3d6"}]},{name:"Ape",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:19,hit_dice:"3d8 + 5",speed:"30 ft., climb 30 ft.",stats:[16,14,14,6,12,7],skillsaves:[{athletics:5},{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/2",actions:[{name:"Multiattack",desc:"The ape makes two fist attacks.",attack_bonus:0},{name:"Fist",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Rock",desc:"Ranged Weapon Attack: +5 to hit, range 25/50 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3}]},{name:"Archmage",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:12,hp:99,hit_dice:"18d8 + 18",speed:"30 ft.",stats:[10,14,12,20,15,16],saves:[{intelligence:9},{wisdom:6}],skillsaves:[{arcana:13},{history:13}],damage_vulnerabilities:"",damage_resistances:"damage from spells; non magical bludgeoning, piercing, and slashing (from stoneskin)",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any six languages",cr:"12",traits:[{name:"Magic Resistance",desc:"The archmage has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Dagger",desc:"Melee or Ranged Weapon Attack: +6 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:6,damage_dice:"1d4",damage_bonus:2}],spells:["The archmage is an 18th-level spellcaster. Its spellcasting ability is Intelligence (spell save DC 17, +9 to hit with spell attacks). The archmage can cast disguise self and invisibility at will and has the following wizard spells prepared:",{"Cantrips (at will)":"fire bolt, light, mage hand, prestidigitation, shocking grasp"},{"1st level (4 slots)":"detect magic, identify, mage armor*, magic missile"},{"2nd level (3 slots)":"detect thoughts, mirror image, misty step"},{"3rd level (3 slots)":"counterspell,fly, lightning bolt"},{"4th level (3 slots)":"banishment, fire shield, stoneskin*"},{"5th level (3 slots)":"cone of cold, scrying, wall of force"},{"6th level (1 slot)":"globe of invulnerability"},{"7th level (1 slot)":"teleport"},{"8th level (1 slot)":"mind blank*"},{"9th level (1 slot)":"time stop"},"* The archmage casts these spells on itself before combat."]},{name:"Assassin",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-good alignment",ac:15,hp:78,hit_dice:"12d8 + 24",speed:"30 ft.",stats:[11,16,14,13,11,10],saves:[{dexterity:6},{intelligence:4}],skillsaves:[{acrobatics:6},{deception:3},{perception:3},{stealth:9}],damage_vulnerabilities:"",damage_resistances:"poison",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"Thieves' cant plus any two languages",cr:"8",traits:[{name:"Assassinate",desc:"During its first turn, the assassin has advantage on attack rolls against any creature that hasn't taken a turn. Any hit the assassin scores against a surprised creature is a critical hit.",attack_bonus:0},{name:"Evasion",desc:"If the assassin is subjected to an effect that allows it to make a Dexterity saving throw to take only half damage, the assassin instead takes no damage if it succeeds on the saving throw, and only half damage if it fails.",attack_bonus:0},{name:"Sneak Attack (1/Turn)",desc:"The assassin deals an extra 13 (4d6) damage when it hits a target with a weapon attack and has advantage on the attack roll, or when the target is within 5 ft. of an ally of the assassin that isn't incapacitated and the assassin doesn't have disadvantage on the attack roll.",attack_bonus:0,damage_dice:"4d6"}],actions:[{name:"Multiattack",desc:"The assassin makes two shortsword attacks.",attack_bonus:0},{name:"Shortsword",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) piercing damage, and the target must make a DC 15 Constitution saving throw, taking 24 (7d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:6,damage_dice:"1d6",damage_bonus:3},{name:"Light Crossbow",desc:"Ranged Weapon Attack: +6 to hit, range 80/320 ft., one target. Hit: 7 (1d8 + 3) piercing damage, and the target must make a DC 15 Constitution saving throw, taking 24 (7d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3}]},{name:"Awakened Shrub",size:"Small",type:"plant",subtype:"",alignment:"unaligned",ac:9,hp:10,hit_dice:"3d6 + -1",speed:"20 ft.",stats:[3,8,11,10,10,6],damage_vulnerabilities:"fire",damage_resistances:"piercing",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"one language known by its creator",cr:"0",traits:[{name:"False Appearance",desc:"While the shrub remains motionless, it is indistinguishable from a normal shrub.",attack_bonus:0}],actions:[{name:"Rake",desc:"Melee Weapon Attack: +1 to hit, reach 5 ft., one target. Hit: 1 (1d4 \u2014 1) slashing damage.",attack_bonus:1,damage_dice:"1d4",damage_bonus:-1}]},{name:"Awakened Tree",size:"Huge",type:"plant",subtype:"",alignment:"unaligned",ac:13,hp:59,hit_dice:"7d12 + 13",speed:"20 ft.",stats:[19,6,15,10,10,7],damage_vulnerabilities:"fire",damage_resistances:"bludgeoning, piercing",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"one language known by its creator",cr:"2",traits:[{name:"False Appearance",desc:"While the tree remains motionless, it is indistinguishable from a normal tree.",attack_bonus:0}],actions:[{name:"Slam",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 14 (3d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"3d6",damage_bonus:4}]},{name:"Axe Beak",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d10 + 2",speed:"50 ft.",stats:[14,12,12,2,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/4",actions:[{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Azer",size:"Medium",type:"elemental",subtype:"",alignment:"lawful neutral",ac:17,hp:39,hit_dice:"6d8 + 12",speed:"30 ft.",stats:[17,12,15,12,13,10],saves:[{constitution:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"passive Perception 11",languages:"Ignan",cr:"2",traits:[{name:"Heated Body",desc:"A creature that touches the azer or hits it with a melee attack while within 5 ft. of it takes 5 (1d10) fire damage.",attack_bonus:0,damage_dice:"1d10"},{name:"Heated Weapons",desc:"When the azer hits with a metal melee weapon, it deals an extra 3 (1d6) fire damage (included in the attack).",attack_bonus:0},{name:"Illumination",desc:"The azer sheds bright light in a 10-foot radius and dim light for an additional 10 ft..",attack_bonus:0}],actions:[{name:"Warhammer",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) bludgeoning damage, or 8 (1d10 + 3) bludgeoning damage if used with two hands to make a melee attack, plus 3 (1d6) fire damage.",attack_bonus:5,damage_dice:"1d8 + 1d6",damage_bonus:3}]},{name:"Baboon",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:3,hit_dice:"1d6 + -1",speed:"30 ft., climb 30 ft.",stats:[8,14,11,4,12,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"",cr:"0",traits:[{name:"Pack Tactics",desc:"The baboon has advantage on an attack roll against a creature if at least one of the baboon's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +1 to hit, reach 5 ft., one target. Hit: 1 (1d4 \u2014 1) piercing damage.",attack_bonus:1,damage_dice:"1d4",damage_bonus:-1}]},{name:"Badger",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:3,hit_dice:"1d4",speed:"20 ft., burrow 5 ft.",stats:[4,11,12,2,12,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 11",languages:"",cr:"0",traits:[{name:"Keen Smell",desc:"The badger has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:2,damage_bonus:1}]},{name:"Balor",size:"Huge",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:19,hp:262,hit_dice:"21d12 + 125",speed:"40 ft., fly 80 ft.",stats:[26,15,22,20,16,22],saves:[{strength:14},{constitution:12},{wisdom:9},{charisma:12}],damage_vulnerabilities:"",damage_resistances:"cold, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"truesight 120 ft., passive Perception 13",languages:"Abyssal, telepathy 120 ft.",cr:"19",traits:[{name:"Death Throes",desc:"When the balor dies, it explodes, and each creature within 30 feet of it must make a DC 20 Dexterity saving throw, taking 70 (20d6) fire damage on a failed save, or half as much damage on a successful one. The explosion ignites flammable objects in that area that aren't being worn or carried, and it destroys the balor's weapons.",attack_bonus:0,damage_dice:"20d6"},{name:"Fire Aura",desc:"At the start of each of the balor's turns, each creature within 5 feet of it takes 10 (3d6) fire damage, and flammable objects in the aura that aren't being worn or carried ignite. A creature that touches the balor or hits it with a melee attack while within 5 feet of it takes 10 (3d6) fire damage.",attack_bonus:0,damage_dice:"3d6"},{name:"Magic Resistance",desc:"The balor has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The balor's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The balor makes two attacks: one with its longsword and one with its whip.",attack_bonus:0},{name:"Longsword",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 21 (3d8 + 8) slashing damage plus 13 (3d8) lightning damage. If the balor scores a critical hit, it rolls damage dice three times, instead of twice.",attack_bonus:14,damage_dice:"3d8 + 3d8",damage_bonus:8},{name:"Whip",desc:"Melee Weapon Attack: +14 to hit, reach 30 ft., one target. Hit: 15 (2d6 + 8) slashing damage plus 10 (3d6) fire damage, and the target must succeed on a DC 20 Strength saving throw or be pulled up to 25 feet toward the balor.",attack_bonus:14,damage_dice:"2d6 + 3d6",damage_bonus:8},{name:"Teleport",desc:"The balor magically teleports, along with any equipment it is wearing or carrying, up to 120 feet to an unoccupied space it can see.",attack_bonus:0},{name:"Variant: Summon Demon (1/Day)",desc:"The demon chooses what to summon and attempts a magical summoning.\\nA balor has a 50 percent chance of summoning 1d8 vrocks, 1d6 hezrous, 1d4 glabrezus, 1d3 nalfeshnees, 1d2 mariliths, or one goristro.\\nA summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Bandit",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-lawful alignment",ac:12,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[11,12,12,10,10,10],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"1/8",actions:[{name:"Scimitar",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1},{name:"Light Crossbow",desc:"Ranged Weapon Attack: +3 to hit, range 80 ft./320 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Bandit Captain",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-lawful alignment",ac:15,hp:65,hit_dice:"10d8 + 20",speed:"30 ft.",stats:[15,16,14,14,11,14],saves:[{strength:4},{dexterity:5},{wisdom:2}],skillsaves:[{athletics:4},{deception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any two languages",cr:"2",actions:[{name:"Multiattack",desc:"The captain makes three melee attacks: two with its scimitar and one with its dagger. Or the captain makes two ranged attacks with its daggers.",attack_bonus:0},{name:"Scimitar",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Dagger",desc:"Melee or Ranged Weapon Attack: +5 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 5 (1d4 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3}],reactions:[{name:"Parry",desc:"The captain adds 2 to its AC against one melee attack that would hit it. To do so, the captain must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Barbed Devil",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:15,hp:110,hit_dice:"13d8 + 51",speed:"30 ft.",stats:[16,17,18,12,14,14],saves:[{strength:6},{constitution:7},{wisdom:5},{charisma:5}],skillsaves:[{deception:5},{insight:5},{perception:8}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 18",languages:"Infernal, telepathy 120 ft.",cr:"5",traits:[{name:"Barbed Hide",desc:"At the start of each of its turns, the barbed devil deals 5 (1d10) piercing damage to any creature grappling it.",attack_bonus:0,damage_dice:"1d10"},{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes three melee attacks: one with its tail and two with its claws. Alternatively, it can use Hurl Flame twice.",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft ., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:6,damage_dice:"1d6",damage_bonus:3},{name:"Tail",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3},{name:"Hurl Flame",desc:"Ranged Spell Attack: +5 to hit, range 150 ft., one target. Hit: 10 (3d6) fire damage. If the target is a flammable object that isn't being worn or carried, it also catches fire.",attack_bonus:5,damage_dice:"3d6"}]},{name:"Basilisk",size:"Medium",type:"monstrosity",subtype:"",alignment:"unaligned",ac:12,hp:52,hit_dice:"8d8 + 16",speed:"20 ft.",stats:[16,8,15,2,8,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 9",languages:"",cr:"3",traits:[{name:"Petrifying Gaze",desc:"If a creature starts its turn within 30 ft. of the basilisk and the two of them can see each other, the basilisk can force the creature to make a DC 12 Constitution saving throw if the basilisk isn't incapacitated. On a failed save, the creature magically begins to turn to stone and is restrained. It must repeat the saving throw at the end of its next turn. On a success, the effect ends. On a failure, the creature is petrified until freed by the greater restoration spell or other magic.\\nA creature that isn't surprised can avert its eyes to avoid the saving throw at the start of its turn. If it does so, it can't see the basilisk until the start of its next turn, when it can avert its eyes again. If it looks at the basilisk in the meantime, it must immediately make the save.\\nIf the basilisk sees its reflection within 30 ft. of it in bright light, it mistakes itself for a rival and targets itself with its gaze.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage plus 7 (2d6) poison damage.",attack_bonus:5,damage_dice:"2d6 + 2d6",damage_bonus:3}]},{name:"Bat",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:1,hit_dice:"1d4 + -2",speed:"5 ft., fly 30 ft.",stats:[2,15,8,2,12,4],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 11",languages:"",cr:"0",traits:[{name:"Echolocation",desc:"The bat can't use its blindsight while deafened.",attack_bonus:0},{name:"Keen Hearing",desc:"The bat has advantage on Wisdom (Perception) checks that rely on hearing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one creature. Hit: 1 piercing damage.",attack_bonus:0,damage_bonus:1}]},{name:"Bearded Devil",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:13,hp:52,hit_dice:"8d8 + 16",speed:"30 ft.",stats:[16,15,15,9,11,11],saves:[{strength:5},{constitution:4},{wisdom:2}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"Infernal, telepathy 120 ft.",cr:"3",traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Steadfast",desc:"The devil can't be frightened while it can see an allied creature within 30 feet of it.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes two attacks: one with its beard and one with its glaive.",attack_bonus:0},{name:"Beard",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 6 (1d8 + 2) piercing damage, and the target must succeed on a DC 12 Constitution saving throw or be poisoned for 1 minute. While poisoned in this way, the target can't regain hit points. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:5,damage_dice:"1d8",damage_bonus:2},{name:"Glaive",desc:"Melee Weapon Attack: +5 to hit, reach 10 ft., one target. Hit: 8 (1d10 + 3) slashing damage. If the target is a creature other than an undead or a construct, it must succeed on a DC 12 Constitution saving throw or lose 5 (1d10) hit points at the start of each of its turns due to an infernal wound. Each time the devil hits the wounded target with this attack, the damage dealt by the wound increases by 5 (1d10). Any creature can take an action to stanch the wound with a successful DC 12 Wisdom (Medicine) check. The wound also closes if the target receives magical healing.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3}]},{name:"Behir",size:"Huge",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:17,hp:168,hit_dice:"16d12 + 64",speed:"50 ft., climb 40 ft.",stats:[23,16,18,7,14,12],skillsaves:[{perception:6},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"darkvision 90 ft., passive Perception 16",languages:"Draconic",cr:"11",actions:[{name:"Multiattack",desc:"The behir makes two attacks: one with its bite and one to constrict.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 22 (3d10 + 6) piercing damage.",attack_bonus:10,damage_dice:"3d10",damage_bonus:6},{name:"Constrict",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one Large or smaller creature. Hit: 17 (2d10 + 6) bludgeoning damage plus 17 (2d10 + 6) slashing damage. The target is grappled (escape DC 16) if the behir isn't already constricting a creature, and the target is restrained until this grapple ends.",attack_bonus:10,damage_dice:"2d10 + 2d10",damage_bonus:6},{name:"Lightning Breath (Recharge 5-6)",desc:"The behir exhales a line of lightning that is 20 ft. long and 5 ft. wide. Each creature in that line must make a DC 16 Dexterity saving throw, taking 66 (12d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d10"},{name:"Swallow",desc:"The behir makes one bite attack against a Medium or smaller target it is grappling. If the attack hits, the target is also swallowed, and the grapple ends. While swallowed, the target is blinded and restrained, it has total cover against attacks and other effects outside the behir, and it takes 21 (6d6) acid damage at the start of each of the behir's turns. A behir can have only one creature swallowed at a time.\\nIf the behir takes 30 damage or more on a single turn from the swallowed creature, the behir must succeed on a DC 14 Constitution saving throw at the end of that turn or regurgitate the creature, which falls prone in a space within 10 ft. of the behir. If the behir dies, a swallowed creature is no longer restrained by it and can escape from the corpse by using 15 ft. of movement, exiting prone.",attack_bonus:0,damage_dice:"6d6"}]},{name:"Berserker",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any chaotic alignment",ac:13,hp:67,hit_dice:"9d8 + 26",speed:"30 ft.",stats:[16,12,17,9,11,9],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"2",traits:[{name:"Reckless",desc:"At the start of its turn, the berserker can gain advantage on all melee weapon attack rolls during that turn, but attack rolls against it have advantage until the start of its next turn.",attack_bonus:0}],actions:[{name:"Greataxe",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 9 (1d12 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d12",damage_bonus:3}]},{name:"Black Bear",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d8 + 5",speed:"40 ft., climb 30 ft.",stats:[15,10,14,2,12,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/2",traits:[{name:"Keen Smell",desc:"The bear has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The bear makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:2},{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) slashing damage.",attack_bonus:3,damage_dice:"2d4",damage_bonus:2}]},{name:"Black Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic evil",ac:17,hp:33,hit_dice:"6d8 + 6",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[15,14,13,10,11,13],saves:[{dexterity:4},{constitution:3},{wisdom:2},{charisma:3}],skillsaves:[{perception:4},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage plus 2 (1d4) acid damage.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2},{name:"Acid Breath (Recharge 5-6)",desc:"The dragon exhales acid in a 15-foot line that is 5 feet wide. Each creature in that line must make a DC 11 Dexterity saving throw, taking 22 (Sd8) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"5d8"}]},{name:"Black Pudding",size:"Large",type:"ooze",subtype:"",alignment:"unaligned",ac:7,hp:85,hit_dice:"10d10 + 30",speed:"20 ft., climb 20 ft.",stats:[16,5,16,1,6,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid, cold, lightning, slashing",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, prone",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 8",languages:"",cr:"4",traits:[{name:"Amorphous",desc:"The pudding can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Corrosive Form",desc:"A creature that touches the pudding or hits it with a melee attack while within 5 feet of it takes 4 (1d8) acid damage. Any nonmagical weapon made of metal or wood that hits the pudding corrodes. After dealing damage, the weapon takes a permanent and cumulative -1 penalty to damage rolls. If its penalty drops to -5, the weapon is destroyed. Nonmagical ammunition made of metal or wood that hits the pudding is destroyed after dealing damage. The pudding can eat through 2-inch-thick, nonmagical wood or metal in 1 round.",attack_bonus:0,damage_dice:"1d8"},{name:"Spider Climb",desc:"The pudding can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage plus 18 (4d8) acid damage. In addition, nonmagical armor worn by the target is partly dissolved and takes a permanent and cumulative -1 penalty to the AC it offers. The armor is destroyed if the penalty reduces its AC to 10.",attack_bonus:5,damage_dice:"1d6 + 4d8",damage_bonus:3}],reactions:[{name:"Split",desc:"When a pudding that is Medium or larger is subjected to lightning or slashing damage, it splits into two new puddings if it has at least 10 hit points. Each new pudding has hit points equal to half the original pudding's, rounded down. New puddings are one size smaller than the original pudding.",attack_bonus:0}]},{name:"Blink Dog",size:"Medium",type:"fey",subtype:"",alignment:"lawful good",ac:13,hp:22,hit_dice:"4d8 + 4",speed:"40 ft.",stats:[12,17,12,10,13,11],skillsaves:[{perception:3},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"Blink Dog, understands Sylvan but can't speak it",cr:"1/4",traits:[{name:"Keen Hearing and Smell",desc:"The dog has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1},{name:"Teleport (Recharge 4-6)",desc:"The dog magically teleports, along with any equipment it is wearing or carrying, up to 40 ft. to an unoccupied space it can see. Before or after teleporting, the dog can make one bite attack.",attack_bonus:0}]},{name:"Blood Hawk",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:7,hit_dice:"2d6",speed:"10 ft., fly 60 ft.",stats:[6,14,10,3,14,5],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"1/8",traits:[{name:"Keen Sight",desc:"The hawk has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0},{name:"Pack Tactics",desc:"The hawk has advantage on an attack roll against a creature if at least one of the hawk's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Blue Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"lawful evil",ac:17,hp:52,hit_dice:"8d8 + 16",speed:"30 ft., burrow 15 ft., fly 60 ft.",stats:[17,10,15,12,11,15],saves:[{dexterity:2},{constitution:4},{wisdom:2},{charisma:4}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"3",actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage plus 3 (1d6) lightning damage.",attack_bonus:5,damage_dice:"1d10 + 1d6",damage_bonus:3},{name:"Lightning Breath (Recharge 5-6)",desc:"The dragon exhales lightning in a 30-foot line that is 5 feet wide. Each creature in that line must make a DC 12 Dexterity saving throw, taking 22 (4d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"4d10"}]},{name:"Boar",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:11,hit_dice:"2d8 + 2",speed:"40 ft.",stats:[13,11,12,2,9,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 9",languages:"",cr:"1/4",traits:[{name:"Charge",desc:"If the boar moves at least 20 ft. straight toward a target and then hits it with a tusk attack on the same turn, the target takes an extra 3 (1d6) slashing damage. If the target is a creature, it must succeed on a DC 11 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"1d6"},{name:"Relentless (Recharges after a Short or Long Rest)",desc:"If the boar takes 7 damage or less that would reduce it to 0 hit points, it is reduced to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Tusk",desc:"Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Bone Devil",size:"Large",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:19,hp:142,hit_dice:"15d10 + 59",speed:"40 ft., fly 40 ft.",stats:[18,16,18,13,14,16],saves:[{intelligence:5},{wisdom:6},{charisma:7}],skillsaves:[{deception:7},{insight:6}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 9",languages:"Infernal, telepathy 120 ft.",cr:"12",traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes three attacks: two with its claws and one with its sting.",attack_bonus:0},{name:"Multiattack",desc:"The devil makes three attacks: two with its claws and one with its sting.",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 8 (1d8 + 4) slashing damage.",attack_bonus:8,damage_dice:"1d8",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 8 (1d8 + 4) slashing damage.",attack_bonus:8,damage_dice:"1d8",damage_bonus:4},{name:"Sting",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 13 (2d8 + 4) piercing damage plus 17 (5d6) poison damage, and the target must succeed on a DC 14 Constitution saving throw or become poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success .",attack_bonus:8,damage_dice:"2d8",damage_bonus:4},{name:"Sting",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 13 (2d8 + 4) piercing damage plus 17 (5d6) poison damage, and the target must succeed on a DC 14 Constitution saving throw or become poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success .",attack_bonus:8,damage_dice:"2d8",damage_bonus:4}]},{name:"Brass Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic good",ac:16,hp:16,hit_dice:"3d8 + 2",speed:"30 ft., burrow 15 ft., fly 60 ft.",stats:[15,10,13,10,11,13],saves:[{dexterity:2},{constitution:3},{wisdom:2},{charisma:3}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"1",actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nFire Breath. The dragon exhales fire in an 20-foot line that is 5 feet wide. Each creature in that line must make a DC 11 Dexterity saving throw, taking 14 (4d6) fire damage on a failed save, or half as much damage on a successful one.\\nSleep Breath. The dragon exhales sleep gas in a 15-foot cone. Each creature in that area must succeed on a DC 11 Constitution saving throw or fall unconscious for 1 minute. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.",attack_bonus:0,damage_dice:"4d6"}]},{name:"Bronze Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"lawful good",ac:17,hp:32,hit_dice:"5d8 + 9",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[17,10,15,12,11,15],saves:[{dexterity:2},{constitution:4},{wisdom:2},{charisma:4}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nLightning Breath. The dragon exhales lightning in a 40-foot line that is 5 feet wide. Each creature in that line must make a DC 12 Dexterity saving throw, taking 16 (3d10) lightning damage on a failed save, or half as much damage on a successful one.\\nRepulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 12 Strength saving throw. On a failed save, the creature is pushed 30 feet away from the dragon.",attack_bonus:0,damage_dice:"3d10"}]},{name:"Brown Bear",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:34,hit_dice:"4d10 + 12",speed:"40 ft., climb 30 ft.",stats:[19,10,16,2,13,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1",traits:[{name:"Keen Smell",desc:"The bear has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The bear makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:4}]},{name:"Bugbear",size:"Medium",type:"humanoid",subtype:"goblinoid",alignment:"chaotic evil",ac:16,hp:27,hit_dice:"5d8 + 4",speed:"30 ft.",stats:[15,14,13,8,11,9],skillsaves:[{stealth:6},{survival:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Common, Goblin",cr:"1",traits:[{name:"Brute",desc:"A melee weapon deals one extra die of its damage when the bugbear hits with it (included in the attack).",attack_bonus:0},{name:"Surprise Attack",desc:"If the bugbear surprises a creature and hits it with an attack during the first round of combat, the target takes an extra 7 (2d6) damage from the attack.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Morningstar",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 11 (2d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"2d8",damage_bonus:2},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 9 (2d6 + 2) piercing damage in melee or 5 (1d6 + 2) piercing damage at range.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2}]},{name:"Bulette",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:17,hp:94,hit_dice:"9d10 + 44",speed:"40 ft., burrow 40 ft.",stats:[19,11,21,2,10,5],skillsaves:[{perception:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 16",languages:"",cr:"5",traits:[{name:"Standing Leap",desc:"The bulette's long jump is up to 30 ft. and its high jump is up to 15 ft., with or without a running start.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 30 (4d12 + 4) piercing damage.",attack_bonus:7,damage_dice:"4d12",damage_bonus:4},{name:"Deadly Leap",desc:"If the bulette jumps at least 15 ft. as part of its movement, it can then use this action to land on its ft. in a space that contains one or more other creatures. Each of those creatures must succeed on a DC 16 Strength or Dexterity saving throw (target's choice) or be knocked prone and take 14 (3d6 + 4) bludgeoning damage plus 14 (3d6 + 4) slashing damage. On a successful save, the creature takes only half the damage, isn't knocked prone, and is pushed 5 ft. out of the bulette's space into an unoccupied space of the creature's choice. If no unoccupied space is within range, the creature instead falls prone in the bulette's space.",attack_bonus:0}]},{name:"Camel",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:9,hp:15,hit_dice:"2d10 + 4",speed:"50 ft.",stats:[16,8,14,2,8,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 9",languages:"",cr:"1/8",actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 2 (1d4) bludgeoning damage.",attack_bonus:5,damage_dice:"1d4"}]},{name:"Carrion Crawler",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:13,hp:51,hit_dice:"6d10 + 18",speed:"30 ft., climb 30 ft.",stats:[14,13,16,1,12,5],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"2",traits:[{name:"Keen Smell",desc:"The carrion crawler has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Spider Climb",desc:"The carrion crawler can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The carrion crawler makes two attacks: one with its tentacles and one with its bite.",attack_bonus:0},{name:"Tentacles",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one creature. Hit: 4 (1d4 + 2) poison damage, and the target must succeed on a DC 13 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the poison on itself on a success.",attack_bonus:8,damage_dice:"1d4",damage_bonus:2},{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2}]},{name:"Cat",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:2,hit_dice:"1d4 + -1",speed:"40 ft., climb 30 ft.",stats:[3,15,10,3,12,7],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",traits:[{name:"Keen Smell",desc:"The cat has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one target. Hit: 1 slashing damage.",attack_bonus:0,damage_bonus:1}]},{name:"Cave Bear",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:42,hit_dice:"5d10 + 14",speed:"40 ft., swim 30 ft.",stats:[20,10,16,2,13,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"2",traits:[{name:"Keen Smell",desc:"The bear has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The bear makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 9 (1d8 + 5) piercing damage.",attack_bonus:7,damage_dice:"1d8",damage_bonus:5},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:5}]},{name:"Centaur",size:"Large",type:"monstrosity",subtype:"",alignment:"neutral good",ac:12,hp:45,hit_dice:"6d10 + 12",speed:"50 ft.",stats:[18,14,14,9,13,11],skillsaves:[{athletics:6},{perception:3},{survival:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"Elvish, Sylvan",cr:"2",traits:[{name:"Charge",desc:"If the centaur moves at least 30 ft. straight toward a target and then hits it with a pike attack on the same turn, the target takes an extra 10 (3d6) piercing damage.",attack_bonus:0,damage_dice:"3d6"}],actions:[{name:"Multiattack",desc:"The centaur makes two attacks: one with its pike and one with its hooves or two with its longbow.",attack_bonus:0},{name:"Pike",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 9 (1d10 + 4) piercing damage.",attack_bonus:6,damage_dice:"1d10",damage_bonus:4},{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4},{name:"Longbow",desc:"Ranged Weapon Attack: +4 to hit, range 150/600 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Chain Devil",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:16,hp:85,hit_dice:"10d8 + 40",speed:"30 ft.",stats:[18,15,18,11,12,14],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 8",languages:"Infernal, telepathy 120 ft.",cr:"11",traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes two attacks with its chains.",attack_bonus:0},{name:"Chain",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 11 (2d6 + 4) slashing damage. The target is grappled (escape DC 14) if the devil isn't already grappling a creature. Until this grapple ends, the target is restrained and takes 7 (2d6) piercing damage at the start of each of its turns.",attack_bonus:8,damage_dice:"2d6",damage_bonus:4},{name:"Animate Chains (Recharges after a Short or Long Rest)",desc:"Up to four chains the devil can see within 60 feet of it magically sprout razor-edged barbs and animate under the devil's control, provided that the chains aren't being worn or carried.\\nEach animated chain is an object with AC 20, 20 hit points, resistance to piercing damage, and immunity to psychic and thunder damage. When the devil uses Multiattack on its turn, it can use each animated chain to make one additional chain attack. An animated chain can grapple one creature of its own but can't make attacks while grappling. An animated chain reverts to its inanimate state if reduced to 0 hit points or if the devil is incapacitated or dies.",attack_bonus:0}],reactions:[{name:"Unnerving Mask",desc:"When a creature the devil can see starts its turn within 30 feet of the devil, the devil can create the illusion that it looks like one of the creature's departed loved ones or bitter enemies. If the creature can see the devil, it must succeed on a DC 14 Wisdom saving throw or be frightened until the end of its turn.",attack_bonus:0}]},{name:"Chimera",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:14,hp:114,hit_dice:"12d10 + 48",speed:"30 ft., fly 60 ft.",stats:[19,11,19,3,14,10],skillsaves:[{perception:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 18",languages:"understands Draconic but can't speak",cr:"6",actions:[{name:"Multiattack",desc:"The chimera makes three attacks: one with its bite, one with its horns, and one with its claws. When its fire breath is available, it can use the breath in place of its bite or horns.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Horns",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 10 (1d12 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"1d12",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon head exhales fire in a 15-foot cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 31 (7d8) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"7d8"}]},{name:"Chuul",size:"Large",type:"aberration",subtype:"",alignment:"chaotic evil",ac:16,hp:93,hit_dice:"11d10 + 32",speed:"30 ft., swim 30 ft.",stats:[19,10,16,5,11,5],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 14",languages:"understands Deep Speech but can't speak",cr:"4",traits:[{name:"Amphibious",desc:"The chuul can breathe air and water.",attack_bonus:0},{name:"Sense Magic",desc:"The chuul senses magic within 120 feet of it at will. This trait otherwise works like the detect magic spell but isn't itself magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The chuul makes two pincer attacks. If the chuul is grappling a creature, the chuul can also use its tentacles once.",attack_bonus:0},{name:"Pincer",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage. The target is grappled (escape DC 14) if it is a Large or smaller creature and the chuul doesn't have two other creatures grappled.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4},{name:"Tentacles",desc:"One creature grappled by the chuul must succeed on a DC 13 Constitution saving throw or be poisoned for 1 minute. Until this poison ends, the target is paralyzed. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0}]},{name:"Clay Golem",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:14,hp:133,hit_dice:"14d10 + 56",speed:"20 ft.",stats:[20,9,18,3,8,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid, poison, psychic; bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",condition_immunities:"charmed, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"understands the languages of its creator but can't speak",cr:"9",traits:[{name:"Acid Absorption",desc:"Whenever the golem is subjected to acid damage, it takes no damage and instead regains a number of hit points equal to the acid damage dealt.",attack_bonus:0},{name:"Berserk",desc:"Whenever the golem starts its turn with 60 hit points or fewer, roll a d6. On a 6, the golem goes berserk. On each of its turns while berserk, the golem attacks the nearest creature it can see. If no creature is near enough to move to and attack, the golem attacks an object, with preference for an object smaller than itself. Once the golem goes berserk, it continues to do so until it is destroyed or regains all its hit points.",attack_bonus:0},{name:"Immutable Form",desc:"The golem is immune to any spell or effect that would alter its form.",attack_bonus:0},{name:"Magic Resistance",desc:"The golem has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The golem's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The golem makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 16 (2d10 + 5) bludgeoning damage. If the target is a creature, it must succeed on a DC 15 Constitution saving throw or have its hit point maximum reduced by an amount equal to the damage taken. The target dies if this attack reduces its hit point maximum to 0. The reduction lasts until removed by the greater restoration spell or other magic.",attack_bonus:8,damage_dice:"2d10",damage_bonus:5},{name:"Haste (Recharge 5-6)",desc:"Until the end of its next turn, the golem magically gains a +2 bonus to its AC, has advantage on Dexterity saving throws, and can use its slam attack as a bonus action.",attack_bonus:0}]},{name:"Cloaker",size:"Large",type:"aberration",subtype:"",alignment:"chaotic neutral",ac:14,hp:78,hit_dice:"12d10 + 12",speed:"10 ft., fly 40 ft.",stats:[17,15,12,13,12,14],skillsaves:[{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"Deep Speech, Undercommon",cr:"8",traits:[{name:"Damage Transfer",desc:"While attached to a creature, the cloaker takes only half the damage dealt to it (rounded down). and that creature takes the other half.",attack_bonus:0},{name:"False Appearance",desc:"While the cloaker remains motionless without its underside exposed, it is indistinguishable from a dark leather cloak.",attack_bonus:0},{name:"Light Sensitivity",desc:"While in bright light, the cloaker has disadvantage on attack rolls and Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The cloaker makes two attacks: one with its bite and one with its tail.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one creature. Hit: 10 (2d6 + 3) piercing damage, and if the target is Large or smaller, the cloaker attaches to it. If the cloaker has advantage against the target, the cloaker attaches to the target's head, and the target is blinded and unable to breathe while the cloaker is attached. While attached, the cloaker can make this attack only against the target and has advantage on the attack roll. The cloaker can detach itself by spending 5 feet of its movement. A creature, including the target, can take its action to detach the cloaker by succeeding on a DC 16 Strength check.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3},{name:"Tail",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one creature. Hit: 7 (1d8 + 3) slashing damage.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3},{name:"Moan",desc:"Each creature within 60 feet of the cloaker that can hear its moan and that isn't an aberration must succeed on a DC 13 Wisdom saving throw or become frightened until the end of the cloaker's next turn. If a creature's saving throw is successful, the creature is immune to the cloaker's moan for the next 24 hours.",attack_bonus:0},{name:"Phantasms (Recharges after a Short or Long Rest)",desc:"The cloaker magically creates three illusory duplicates of itself if it isn't in bright light. The duplicates move with it and mimic its actions, shifting position so as to make it impossible to track which cloaker is the real one. If the cloaker is ever in an area of bright light, the duplicates disappear.\\nWhenever any creature targets the cloaker with an attack or a harmful spell while a duplicate remains, that creature rolls randomly to determine whether it targets the cloaker or one of the duplicates. A creature is unaffected by this magical effect if it can't see or if it relies on senses other than sight.\\nA duplicate has the cloaker's AC and uses its saving throws. If an attack hits a duplicate, or if a duplicate fails a saving throw against an effect that deals damage, the duplicate disappears.",attack_bonus:0}]},{name:"Cloud Giant",size:"Huge",type:"giant",subtype:"",alignment:"neutral good (50%) or neutral evil (50%)",ac:14,hp:200,hit_dice:"16d12 + 96",speed:"40 ft.",stats:[27,10,22,12,16,16],saves:[{constitution:10},{wisdom:7},{charisma:7}],skillsaves:[{insight:7},{perception:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 17",languages:"Common, Giant",cr:"9",traits:[{name:"Keen Smell",desc:"The giant has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The giant's innate spellcasting ability is Charisma. It can innately cast the following spells, requiring no material components:\\n\\nAt will: detect magic, fog cloud, light\\n3/day each: feather fall, fly, misty step, telekinesis\\n1/day each: control weather, gaseous form",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The giant makes two morningstar attacks.",attack_bonus:0},{name:"Morningstar",desc:"Melee Weapon Attack: +12 to hit, reach 10 ft., one target. Hit: 21 (3d8 + 8) piercing damage.",attack_bonus:12,damage_dice:"3d8",damage_bonus:8},{name:"Rock",desc:"Ranged Weapon Attack: +12 to hit, range 60/240 ft., one target. Hit: 30 (4d10 + 8) bludgeoning damage.",attack_bonus:12,damage_dice:"4d10",damage_bonus:8}]},{name:"Cockatrice",size:"Small",type:"monstrosity",subtype:"",alignment:"unaligned",ac:11,hp:27,hit_dice:"6d6 + 6",speed:"20 ft., fly 40 ft.",stats:[6,12,12,2,13,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"",cr:"1/2",actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 3 (1d4 + 1) piercing damage, and the target must succeed on a DC 11 Constitution saving throw against being magically petrified. On a failed save, the creature begins to turn to stone and is restrained. It must repeat the saving throw at the end of its next turn. On a success, the effect ends. On a failure, the creature is petrified for 24 hours.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1}]},{name:"Commoner",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:10,hp:4,hit_dice:"1d8 + -1",speed:"30 ft.",stats:[10,10,10,10,10,10],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"0",actions:[{name:"Club",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) bludgeoning damage.",attack_bonus:2,damage_dice:"1d4"}]},{name:"Constrictor Snake",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:13,hit_dice:"2d10 + 2",speed:"30 ft., swim 30 ft.",stats:[15,14,12,1,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 10",languages:"",cr:"1/4",actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Constrict",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 6 (1d8 + 2) bludgeoning damage, and the target is grappled (escape DC 14). Until this grapple ends, the creature is restrained, and the snake can't constrict another target.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Copper Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic good",ac:16,hp:22,hit_dice:"4d8 + 4",speed:"30 ft., climb 30 ft., fly 60 ft.",stats:[15,12,13,14,11,13],saves:[{dexterity:3},{constitution:3},{wisdom:2},{charisma:3}],skillsaves:[{perception:4},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"1",actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nAcid Breath. The dragon exhales acid in an 20-foot line that is 5 feet wide. Each creature in that line must make a DC 11 Dexterity saving throw, taking 18 (4d8) acid damage on a failed save, or half as much damage on a successful one.\\nSlowing Breath. The dragon exhales gas in a 1 5-foot cone. Each creature in that area must succeed on a DC 11 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.",attack_bonus:0,damage_dice:"4d8"}]},{name:"Couatl",size:"Medium",type:"celestial",subtype:"",alignment:"lawful good",ac:19,hp:97,hit_dice:"13d8 + 38",speed:"30 ft., fly 90 ft.",stats:[16,20,17,18,20,18],saves:[{constitution:5},{wisdom:7},{charisma:6}],damage_vulnerabilities:"",damage_resistances:"radiant",damage_immunities:"psychic; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"",senses:"truesight 120 ft., passive Perception 15",languages:"all, telepathy 120 ft.",cr:"4",traits:[{name:"Innate Spellcasting",desc:"The couatl's spellcasting ability is Charisma (spell save DC 14). It can innately cast the following spells, requiring only verbal components:\\n\\nAt will: detect evil and good, detect magic, detect thoughts\\n3/day each: bless, create food and water, cure wounds, lesser restoration, protection from poison, sanctuary, shield\\n1/day each: dream, greater restoration, scrying",attack_bonus:0},{name:"Magic Weapons",desc:"The couatl's weapon attacks are magical.",attack_bonus:0},{name:"Shielded Mind",desc:"The couatl is immune to scrying and to any effect that would sense its emotions, read its thoughts, or detect its location.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one creature. Hit: 8 (1d6 + 5) piercing damage, and the target must succeed on a DC 13 Constitution saving throw or be poisoned for 24 hours. Until this poison ends, the target is unconscious. Another creature can use an action to shake the target awake.",attack_bonus:8,damage_dice:"1d6",damage_bonus:5},{name:"Constrict",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one Medium or smaller creature. Hit: 10 (2d6 + 3) bludgeoning damage, and the target is grappled (escape DC 15). Until this grapple ends, the target is restrained, and the couatl can't constrict another target.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3},{name:"Change Shape",desc:"The couatl magically polymorphs into a humanoid or beast that has a challenge rating equal to or less than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the couatl's choice).\\nIn a new form, the couatl retains its game statistics and ability to speak, but its AC, movement modes, Strength, Dexterity, and other actions are replaced by those of the new form, and it gains any statistics and capabilities (except class features, legendary actions, and lair actions) that the new form has but that it lacks. If the new form has a bite attack, the couatl can use its bite in that form.",attack_bonus:0}]},{name:"Crab",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:2,hit_dice:"1d4",speed:"20 ft., swim 20 ft.",stats:[2,11,10,1,8,2],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., passive Perception 9",languages:"",cr:"0",traits:[{name:"Amphibious",desc:"The crab can breathe air and water.",attack_bonus:0}],actions:[{name:"Claw",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one target. Hit: 1 bludgeoning damage.",attack_bonus:0,damage_bonus:1}]},{name:"Crocodile",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:19,hit_dice:"3d10 + 2",speed:"20 ft., swim 20 ft.",stats:[15,10,13,2,10,5],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/2",traits:[{name:"Hold Breath",desc:"The crocodile can hold its breath for 15 minutes.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 7 (1d10 + 2) piercing damage, and the target is grappled (escape DC 12). Until this grapple ends, the target is restrained, and the crocodile can't bite another target",attack_bonus:4,damage_dice:"1d10",damage_bonus:2}]},{name:"Cult Fanatic",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-good alignment",ac:13,hp:22,hit_dice:"6d8 + -5",speed:"30 ft.",stats:[11,14,12,10,13,14],skillsaves:[{deception:4},{persuasion:4},{religion:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"any one language (usually Common)",cr:"2",traits:[{name:"Dark Devotion",desc:"The fanatic has advantage on saving throws against being charmed or frightened.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The fanatic makes two melee attacks.",attack_bonus:0},{name:"Dagger",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 20/60 ft., one creature. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}],spells:["The fanatic is a 4th-level spellcaster. Its spell casting ability is Wisdom (spell save DC 11, +3 to hit with spell attacks). The fanatic has the following cleric spells prepared:","Cantrips (at will): light, sacred flame, thaumaturgy",{"1st level (4 slots)":"command, inflict wounds, shield of faith"},{"2nd level (3 slots)":"hold person, spiritual weapon"}]},{name:"Cultist",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-good alignment",ac:12,hp:9,hit_dice:"2d8",speed:"30 ft.",stats:[11,12,10,10,11,10],skillsaves:[{deception:2},{religion:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"1/8",traits:[{name:"Dark Devotion",desc:"The cultist has advantage on saving throws against being charmed or frightened.",attack_bonus:0}],actions:[{name:"Scimitar",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 4 (1d6 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Darkmantle",size:"Small",type:"monstrosity",subtype:"",alignment:"unaligned",ac:11,hp:22,hit_dice:"5d6 + 4",speed:"10 ft., fly 30 ft.",stats:[16,12,13,2,10,5],skillsaves:[{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 10",languages:"",cr:"1/2",traits:[{name:"Echolocation",desc:"The darkmantle can't use its blindsight while deafened.",attack_bonus:0},{name:"False Appearance",desc:"While the darkmantle remains motionless, it is indistinguishable from a cave formation such as a stalactite or stalagmite.",attack_bonus:0}],actions:[{name:"Crush",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 6 (1d6 + 3) bludgeoning damage, and the darkmantle attaches to the target. If the target is Medium or smaller and the darkmantle has advantage on the attack roll, it attaches by engulfing the target's head, and the target is also blinded and unable to breathe while the darkmantle is attached in this way.\\nWhile attached to the target, the darkmantle can attack no other creature except the target but has advantage on its attack rolls. The darkmantle's speed also becomes 0, it can't benefit from any bonus to its speed, and it moves with the target.\\nA creature can detach the darkmantle by making a successful DC 13 Strength check as an action. On its turn, the darkmantle can detach itself from the target by using 5 feet of movement.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Darkness Aura (1/day)",desc:"A 15-foot radius of magical darkness extends out from the darkmantle, moves with it, and spreads around corners. The darkness lasts as long as the darkmantle maintains concentration, up to 10 minutes (as if concentrating on a spell). Darkvision can't penetrate this darkness, and no natural light can illuminate it. If any of the darkness overlaps with an area of light created by a spell of 2nd level or lower, the spell creating the light is dispelled.",attack_bonus:0}]},{name:"Death Dog",size:"Medium",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:12,hp:39,hit_dice:"6d8 + 12",speed:"40 ft.",stats:[15,14,14,3,13,6],skillsaves:[{perception:5},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 15",languages:"",cr:"1",traits:[{name:"Two-Headed",desc:"The dog has advantage on Wisdom (Perception) checks and on saving throws against being blinded, charmed, deafened, frightened, stunned, or knocked unconscious.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dog makes two bite attacks.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage. If the target is a creature, it must succeed on a DC 12 Constitution saving throw against disease or become poisoned until the disease is cured. Every 24 hours that elapse, the creature must repeat the saving throw, reducing its hit point maximum by 5 (1d10) on a failure. This reduction lasts until the disease is cured. The creature dies if the disease reduces its hit point maximum to 0.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Deep Gnome (Svirfneblin)",size:"Small",type:"humanoid",subtype:"gnome",alignment:"neutral good",ac:15,hp:16,hit_dice:"3d6 + 5",speed:"20 ft.",stats:[15,14,14,12,10,9],skillsaves:[{perception:2},{investigation:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 12",languages:"Gnomish, Terran, Undercommon",cr:"1/2",traits:[{name:"Stone Camouflage",desc:"The gnome has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0},{name:"Gnome Cunning",desc:"The gnome has advantage on Intelligence, Wisdom, and Charisma saving throws against magic.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The gnome's innate spellcasting ability is Intelligence (spell save DC 11). It can innately cast the following spells, requiring no material components:\\nAt will: nondetection (self only)\\n1/day each: blindness/deafness, blur, disguise self",attack_bonus:0}],actions:[{name:"War Pick",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Poisoned Dart",desc:"Ranged Weapon Attack: +4 to hit, range 30/120 ft., one creature. Hit: 4 (1d4 + 2) piercing damage, and the target must succeed on a DC 12 Constitution saving throw or be poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Deer",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:4,hit_dice:"1d8 + -1",speed:"50 ft.",stats:[11,16,11,2,14,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"",cr:"0",actions:[{name:"Bite",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) piercing damage.",attack_bonus:2,damage_dice:"1d4"}]},{name:"Deva",size:"Medium",type:"celestial",subtype:"",alignment:"lawful good",ac:17,hp:136,hit_dice:"16d8 + 64",speed:"30 ft., fly 90 ft.",stats:[18,18,18,17,20,20],saves:[{wisdom:9},{charisma:9}],skillsaves:[{insight:9},{perception:9}],damage_vulnerabilities:"",damage_resistances:"radiant; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"charmed, exhaustion, frightened",senses:"darkvision 120 ft., passive Perception 19",languages:"all, telepathy 120 ft.",cr:"10",traits:[{name:"Angelic Weapons",desc:"The deva's weapon attacks are magical. When the deva hits with any weapon, the weapon deals an extra 4d8 radiant damage (included in the attack).",attack_bonus:0},{name:"Innate Spellcasting",desc:"The deva's spellcasting ability is Charisma (spell save DC 17). The deva can innately cast the following spells, requiring only verbal components:\\nAt will: detect evil and good\\n1/day each: commune, raise dead",attack_bonus:0},{name:"Magic Resistance",desc:"The deva has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The deva makes two melee attacks.",attack_bonus:0},{name:"Mace",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 7 (1d6 + 4) bludgeoning damage plus 18 (4d8) radiant damage.",attack_bonus:8,damage_dice:"1d6 + 4d8",damage_bonus:4},{name:"Healing Touch (3/Day)",desc:"The deva touches another creature. The target magically regains 20 (4d8 + 2) hit points and is freed from any curse, disease, poison, blindness, or deafness.",attack_bonus:0},{name:"Change Shape",desc:"The deva magically polymorphs into a humanoid or beast that has a challenge rating equal to or less than its own, or back into its true form. It reverts to its true form if it dies. Any equipment it is wearing or carrying is absorbed or borne by the new form (the deva's choice).\\nIn a new form, the deva retains its game statistics and ability to speak, but its AC, movement modes, Strength, Dexterity, and special senses are replaced by those of the new form, and it gains any statistics and capabilities (except class features, legendary actions, and lair actions) that the new form has but that it lacks.",attack_bonus:0}]},{name:"Dire Wolf",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:37,hit_dice:"5d10 + 9",speed:"50 ft.",stats:[17,15,15,3,12,7],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1",traits:[{name:"Keen Hearing and Smell",desc:"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Djinni",size:"Large",type:"elemental",subtype:"",alignment:"chaotic good",ac:17,hp:161,hit_dice:"14d10 + 84",speed:"30 ft., fly 90 ft.",stats:[21,15,22,15,16,20],saves:[{dexterity:6},{wisdom:7},{charisma:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning, thunder",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 13",languages:"Auran",cr:"11",traits:[{name:"Elemental Demise",desc:"If the djinni dies, its body disintegrates into a warm breeze, leaving behind only equipment the djinni was wearing or carrying.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The djinni's innate spellcasting ability is Charisma (spell save DC 17, +9 to hit with spell attacks). It can innately cast the following spells, requiring no material components:\\n\\nAt will: detect evil and good, detect magic, thunderwave 3/day each: create food and water (can create wine instead of water), tongues, wind walk\\n1/day each: conjure elemental (air elemental only), creation, gaseous form, invisibility, major image, plane shift",attack_bonus:0},{name:"Variant: Genie Powers",desc:"Genies have a variety of magical capabilities, including spells. A few have even greater powers that allow them to alter their appearance or the nature of reality.\\n\\nDisguises.\\nSome genies can veil themselves in illusion to pass as other similarly shaped creatures. Such genies can innately cast the disguise self spell at will, often with a longer duration than is normal for that spell. Mightier genies can cast the true polymorph spell one to three times per day, possibly with a longer duration than normal. Such genies can change only their own shape, but a rare few can use the spell on other creatures and objects as well.\\nWishes.\\nThe genie power to grant wishes is legendary among mortals. Only the most potent genies, such as those among the nobility, can do so. A particular genie that has this power can grant one to three wishes to a creature that isn't a genie. Once a genie has granted its limit of wishes, it can't grant wishes again for some amount of time (usually 1 year). and cosmic law dictates that the same genie can expend its limit of wishes on a specific creature only once in that creature's existence.\\nTo be granted a wish, a creature within 60 feet of the genie states a desired effect to it. The genie can then cast the wish spell on the creature's behalf to bring about the effect. Depending on the genie's nature, the genie might try to pervert the intent of the wish by exploiting the wish's poor wording. The perversion of the wording is usually crafted to be to the genie's benefit.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The djinni makes three scimitar attacks.",attack_bonus:0},{name:"Scimitar",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage plus 3 (1d6) lightning or thunder damage (djinni's choice).",attack_bonus:9,damage_dice:"2d6 + 1d6",damage_bonus:5},{name:"Create Whirlwind",desc:"A 5-foot-radius, 30-foot-tall cylinder of swirling air magically forms on a point the djinni can see within 120 feet of it. The whirlwind lasts as long as the djinni maintains concentration (as if concentrating on a spell). Any creature but the djinni that enters the whirlwind must succeed on a DC 18 Strength saving throw or be restrained by it. The djinni can move the whirlwind up to 60 feet as an action, and creatures restrained by the whirlwind move with it. The whirlwind ends if the djinni loses sight of it.\\nA creature can use its action to free a creature restrained by the whirlwind, including itself, by succeeding on a DC 18 Strength check. If the check succeeds, the creature is no longer restrained and moves to the nearest space outside the whirlwind.",attack_bonus:0}]},{name:"Doppelganger",size:"Medium",type:"monstrosity",subtype:"shapechanger",alignment:"unaligned",ac:14,hp:52,hit_dice:"8d8 + 16",speed:"30 ft.",stats:[11,18,14,11,12,14],skillsaves:[{deception:6},{insight:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"charmed",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"Common",cr:"3",traits:[{name:"Shapechanger",desc:"The doppelganger can use its action to polymorph into a Small or Medium humanoid it has seen, or back into its true form. Its statistics, other than its size, are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Ambusher",desc:"The doppelganger has advantage on attack rolls against any creature it has surprised.",attack_bonus:0},{name:"Surprise Attack",desc:"If the doppelganger surprises a creature and hits it with an attack during the first round of combat, the target takes an extra 10 (3d6) damage from the attack.",attack_bonus:0,damage_dice:"3d6"}],actions:[{name:"Multiattack",desc:"The doppelganger makes two melee attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 7 (1d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"1d6",damage_bonus:4},{name:"Read Thoughts",desc:"The doppelganger magically reads the surface thoughts of one creature within 60 ft. of it. The effect can penetrate barriers, but 3 ft. of wood or dirt, 2 ft. of stone, 2 inches of metal, or a thin sheet of lead blocks it. While the target is in range, the doppelganger can continue reading its thoughts, as long as the doppelganger's concentration isn't broken (as if concentrating on a spell). While reading the target's mind, the doppelganger has advantage on Wisdom (Insight) and Charisma (Deception, Intimidation, and Persuasion) checks against the target.",attack_bonus:0}]},{name:"Draft Horse",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:19,hit_dice:"3d10 + 2",speed:"40 ft.",stats:[18,10,12,2,11,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/4",actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (2d4 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d4",damage_bonus:4}]},{name:"Dragon Turtle",size:"Gargantuan",type:"dragon",subtype:"",alignment:"neutral",ac:20,hp:341,hit_dice:"22d20 + 110",speed:"20 ft., swim 40 ft.",stats:[25,10,20,10,12,12],saves:[{dexterity:6},{constitution:11},{wisdom:7}],damage_vulnerabilities:"",damage_resistances:"fire",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 11",languages:"Aquan, Draconic",cr:"17",traits:[{name:"Amphibious",desc:"The dragon turtle can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon turtle makes three attacks: one with its bite and two with its claws. It can make one tail attack in place of its two claw attacks.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +13 to hit, reach 15 ft., one target. Hit: 26 (3d12 + 7) piercing damage.",attack_bonus:13,damage_dice:"3d12",damage_bonus:7},{name:"Claw",desc:"Melee Weapon Attack: +13 to hit, reach 10 ft., one target. Hit: 16 (2d8 + 7) slashing damage.",attack_bonus:13,damage_dice:"2d8",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +13 to hit, reach 15 ft., one target. Hit: 26 (3d12 + 7) bludgeoning damage. If the target is a creature, it must succeed on a DC 20 Strength saving throw or be pushed up to 10 feet away from the dragon turtle and knocked prone.",attack_bonus:13,damage_dice:"3d12",damage_bonus:7},{name:"Steam Breath (Recharge 5-6)",desc:"The dragon turtle exhales scalding steam in a 60-foot cone. Each creature in that area must make a DC 18 Constitution saving throw, taking 52 (15d6) fire damage on a failed save, or half as much damage on a successful one. Being underwater doesn't grant resistance against this damage.",attack_bonus:0,damage_dice:"15d6"}]},{name:"Dretch",size:"Small",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:11,hp:18,hit_dice:"4d6 + 4",speed:"20 ft.",stats:[11,11,12,5,8,3],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"Abyssal, telepathy 60 ft. (works only with creatures that understand Abyssal)",cr:"1/4",actions:[{name:"Multiattack",desc:"The dretch makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 3 (1d6) piercing damage.",attack_bonus:2,damage_dice:"1d6"},{name:"Claws",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 5 (2d4) slashing damage.",attack_bonus:2,damage_dice:"2d4"},{name:"Fetid Cloud (1/Day)",desc:"A 10-foot radius of disgusting green gas extends out from the dretch. The gas spreads around corners, and its area is lightly obscured. It lasts for 1 minute or until a strong wind disperses it. Any creature that starts its turn in that area must succeed on a DC 11 Constitution saving throw or be poisoned until the start of its next turn. While poisoned in this way, the target can take either an action or a bonus action on its turn, not both, and can't take reactions.",attack_bonus:0}]},{name:"Drider",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:19,hp:123,hit_dice:"13d10 + 51",speed:"30 ft., climb 30 ft.",stats:[16,16,18,13,14,12],skillsaves:[{perception:5},{stealth:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 15",languages:"Elvish, Undercommon",cr:"6",traits:[{name:"Fey Ancestry",desc:"The drider has advantage on saving throws against being charmed, and magic can't put the drider to sleep.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The drider's innate spellcasting ability is Wisdom (spell save DC 13). The drider can innately cast the following spells, requiring no material components:\\nAt will: dancing lights\\n1/day each: darkness, faerie fire",attack_bonus:0},{name:"Spider Climb",desc:"The drider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the drider has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0},{name:"Web Walker",desc:"The drider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The drider makes three attacks, either with its longsword or its longbow. It can replace one of those attacks with a bite attack.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one creature. Hit: 2 (1d4) piercing damage plus 9 (2d8) poison damage.",attack_bonus:6,damage_dice:"1d4",damage_bonus:2},{name:"Longsword",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage, or 8 (1d10 + 3) slashing damage if used with two hands.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3},{name:"Longbow",desc:"Ranged Weapon Attack: +6 to hit, range 150/600 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 4 (1d8) poison damage.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3}]},{name:"Drow",size:"Medium",type:"humanoid",subtype:"elf",alignment:"neutral evil",ac:15,hp:13,hit_dice:"3d8 + -1",speed:"30 ft.",stats:[10,14,10,11,11,12],skillsaves:[{perception:2},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 12",languages:"Elvish, Undercommon",cr:"1/4",traits:[{name:"Fey Ancestry",desc:"The drow has advantage on saving throws against being charmed, and magic can't put the drow to sleep.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The drow's spellcasting ability is Charisma (spell save DC 11). It can innately cast the following spells, requiring no material components:\\nAt will: dancing lights\\n1/day each: darkness, faerie fire",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the drow has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Shortsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Hand Crossbow",desc:"Ranged Weapon Attack: +4 to hit, range 30/120 ft., one target. Hit: 5 (1d6 + 2) piercing damage, and the target must succeed on a DC 13 Constitution saving throw or be poisoned for 1 hour. If the saving throw fails by 5 or more, the target is also unconscious while poisoned in this way. The target wakes up if it takes damage or if another creature takes an action to shake it awake.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Druid",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:11,hp:27,hit_dice:"5d8 + 4",speed:"30 ft.",stats:[10,12,13,12,15,11],skillsaves:[{nature:3},{medicine:4},{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"Druidic plus any two languages",cr:"2",traits:[],actions:[{name:"Quarterstaff",desc:"Melee Weapon Attack: +2 to hit (+4 to hit with shillelagh), reach 5 ft., one target. Hit: 3 (1d6) bludgeoning damage, or 6 (1d8 + 2) bludgeoning damage with shillelagh or if wielded with two hands.",attack_bonus:2,damage_dice:"1d6"}],spells:["The druid is a 4th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 12, +4 to hit with spell attacks). It has the following druid spells prepared:",{"Cantrips (at will)":"druidcraft, produce flame, shillelagh"},{"1st level (4 slots)":"entangle, longstrider, speak with animals, thunderwave"},{"2nd level (3 slots)":"animal messenger, barkskin"}]},{name:"Dryad",size:"Medium",type:"fey",subtype:"",alignment:"neutral",ac:11,hp:22,hit_dice:"5d8 + -1",speed:"30 ft.",stats:[10,12,11,14,15,18],skillsaves:[{perception:4},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Elvish, Sylvan",cr:"1",traits:[{name:"Innate Spellcasting",desc:"The dryad's innate spellcasting ability is Charisma (spell save DC 14). The dryad can innately cast the following spells, requiring no material components:\\n\\nAt will: druidcraft\\n3/day each: entangle, goodberry\\n1/day each: barkskin, pass without trace, shillelagh",attack_bonus:0},{name:"Magic Resistance",desc:"The dryad has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Speak with Beasts and Plants",desc:"The dryad can communicate with beasts and plants as if they shared a language.",attack_bonus:0},{name:"Tree Stride",desc:"Once on her turn, the dryad can use 10 ft. of her movement to step magically into one living tree within her reach and emerge from a second living tree within 60 ft. of the first tree, appearing in an unoccupied space within 5 ft. of the second tree. Both trees must be large or bigger.",attack_bonus:0}],actions:[{name:"Club",desc:"Melee Weapon Attack: +2 to hit (+6 to hit with shillelagh), reach 5 ft., one target. Hit: 2 (1 d4) bludgeoning damage, or 8 (1d8 + 4) bludgeoning damage with shillelagh.",attack_bonus:2,damage_dice:"1d4"},{name:"Fey Charm",desc:"The dryad targets one humanoid or beast that she can see within 30 feet of her. If the target can see the dryad, it must succeed on a DC 14 Wisdom saving throw or be magically charmed. The charmed creature regards the dryad as a trusted friend to be heeded and protected. Although the target isn't under the dryad's control, it takes the dryad's requests or actions in the most favorable way it can.\\nEach time the dryad or its allies do anything harmful to the target, it can repeat the saving throw, ending the effect on itself on a success. Otherwise, the effect lasts 24 hours or until the dryad dies, is on a different plane of existence from the target, or ends the effect as a bonus action. If a target's saving throw is successful, the target is immune to the dryad's Fey Charm for the next 24 hours.\\nThe dryad can have no more than one humanoid and up to three beasts charmed at a time.",attack_bonus:0}]},{name:"Duergar",size:"Medium",type:"humanoid",subtype:"dwarf",alignment:"lawful evil",ac:16,hp:26,hit_dice:"4d8 + 8",speed:"25 ft.",stats:[14,11,14,11,10,9],damage_vulnerabilities:"",damage_resistances:"poison",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 10",languages:"Dwarvish, Undercommon",cr:"1",traits:[{name:"Duergar Resilience",desc:"The duergar has advantage on saving throws against poison, spells, and illusions, as well as to resist being charmed or paralyzed.",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the duergar has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Enlarge (Recharges after a Short or Long Rest)",desc:"For 1 minute, the duergar magically increases in size, along with anything it is wearing or carrying. While enlarged, the duergar is Large, doubles its damage dice on Strength-based weapon attacks (included in the attacks), and makes Strength checks and Strength saving throws with advantage. If the duergar lacks the room to become Large, it attains the maximum size possible in the space available.",attack_bonus:0},{name:"War Pick",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage, or 11 (2d8 + 2) piercing damage while enlarged.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 5 (1d6 + 2) piercing damage, or 9 (2d6 + 2) piercing damage while enlarged.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Invisibility (Recharges after a Short or Long Rest)",desc:"The duergar magically turns invisible until it attacks, casts a spell, or uses its Enlarge, or until its concentration is broken, up to 1 hour (as if concentrating on a spell). Any equipment the duergar wears or carries is invisible with it .",attack_bonus:0}]},{name:"Dust Mephit",size:"Small",type:"elemental",subtype:"",alignment:"neutral evil",ac:12,hp:17,hit_dice:"5d6 + -1",speed:"30 ft., fly 30 ft.",stats:[5,14,10,9,11,10],skillsaves:[{perception:2},{stealth:4}],damage_vulnerabilities:"fire",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 12",languages:"Auran, Terran",cr:"1/2",traits:[{name:"Death Burst",desc:"When the mephit dies, it explodes in a burst of dust. Each creature within 5 ft. of it must then succeed on a DC 10 Constitution saving throw or be blinded for 1 minute. A blinded creature can repeat the saving throw on each of its turns, ending the effect on itself on a success.",attack_bonus:0},{name:"Innate Spellcasting (1/Day)",desc:"The mephit can innately cast sleep, requiring no material components. Its innate spellcasting ability is Charisma.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2},{name:"Blinding Breath (Recharge 6)",desc:"The mephit exhales a 15-foot cone of blinding dust. Each creature in that area must succeed on a DC 10 Dexterity saving throw or be blinded for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0},{name:"Variant: Summon Mephits (1/Day)",desc:"The mephit has a 25 percent chance of summoning 1d4 mephits of its kind. A summoned mephit appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other mephits. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Eagle",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:3,hit_dice:"1d6 + -1",speed:"10 ft., fly 60 ft.",stats:[6,15,10,2,14,7],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"0",traits:[{name:"Keen Sight",desc:"The eagle has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Talons",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Earth Elemental",size:"Large",type:"elemental",subtype:"",alignment:"neutral",ac:17,hp:126,hit_dice:"12d10 + 60",speed:"30 ft., burrow 30 ft.",stats:[20,8,20,5,10,5],damage_vulnerabilities:"thunder",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"exhaustion, paralyzed, petrified, poisoned, unconscious",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 10",languages:"Terran",cr:"5",traits:[{name:"Earth Glide",desc:"The elemental can burrow through nonmagical, unworked earth and stone. While doing so, the elemental doesn't disturb the material it moves through.",attack_bonus:0},{name:"Siege Monster",desc:"The elemental deals double damage to objects and structures.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The elemental makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 14 (2d8 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"2d8",damage_bonus:5}]},{name:"Efreeti",size:"Large",type:"elemental",subtype:"",alignment:"lawful evil",ac:17,hp:200,hit_dice:"16d10 + 112",speed:"40 ft., fly 60 ft.",stats:[22,12,24,16,15,16],saves:[{intelligence:7},{wisdom:6},{charisma:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 12",languages:"Ignan",cr:"11",traits:[{name:"Elemental Demise",desc:"If the efreeti dies, its body disintegrates in a flash of fire and puff of smoke, leaving behind only equipment the djinni was wearing or carrying.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The efreeti's innate spell casting ability is Charisma (spell save DC 15, +7 to hit with spell attacks). It can innately cast the following spells, requiring no material components:\\n\\nAt will: detect magic\\n3/day: enlarge/reduce, tongues\\n1/day each: conjure elemental (fire elemental only), gaseous form, invisibility, major image, plane shift, wall of fire",attack_bonus:0},{name:"Variant: Genie Powers",desc:"Genies have a variety of magical capabilities, including spells. A few have even greater powers that allow them to alter their appearance or the nature of reality.\\n\\nDisguises.\\nSome genies can veil themselves in illusion to pass as other similarly shaped creatures. Such genies can innately cast the disguise self spell at will, often with a longer duration than is normal for that spell. Mightier genies can cast the true polymorph spell one to three times per day, possibly with a longer duration than normal. Such genies can change only their own shape, but a rare few can use the spell on other creatures and objects as well.\\nWishes.\\nThe genie power to grant wishes is legendary among mortals. Only the most potent genies, such as those among the nobility, can do so. A particular genie that has this power can grant one to three wishes to a creature that isn't a genie. Once a genie has granted its limit of wishes, it can't grant wishes again for some amount of time (usually 1 year). and cosmic law dictates that the same genie can expend its limit of wishes on a specific creature only once in that creature's existence.\\nTo be granted a wish, a creature within 60 feet of the genie states a desired effect to it. The genie can then cast the wish spell on the creature's behalf to bring about the effect. Depending on the genie's nature, the genie might try to pervert the intent of the wish by exploiting the wish's poor wording. The perversion of the wording is usually crafted to be to the genie's benefit.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The efreeti makes two scimitar attacks or uses its Hurl Flame twice.",attack_bonus:0},{name:"Scimitar",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage plus 7 (2d6) fire damage.",attack_bonus:10,damage_dice:"2d6 + 2d6",damage_bonus:6},{name:"Hurl Flame",desc:"Ranged Spell Attack: +7 to hit, range 120 ft., one target. Hit: 17 (5d6) fire damage.",attack_bonus:7,damage_dice:"5d6"}]},{name:"Elephant",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:76,hit_dice:"8d12 + 24",speed:"40 ft.",stats:[22,9,17,3,11,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"4",traits:[{name:"Trampling Charge",desc:"If the elephant moves at least 20 ft. straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the elephant can make one stomp attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 19 (3d8 + 6) piercing damage.",attack_bonus:8,damage_dice:"3d8",damage_bonus:6},{name:"Stomp",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one prone creature. Hit: 22 (3d10 + 6) bludgeoning damage.",attack_bonus:8,damage_dice:"3d10",damage_bonus:6}]},{name:"Elk",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:13,hit_dice:"2d10 + 2",speed:"50 ft.",stats:[16,10,12,2,10,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/4",traits:[{name:"Charge",desc:"If the elk moves at least 20 ft. straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 7 (2d6) damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) bludgeoning damage.",attack_bonus:0},{name:"Hooves",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one prone creature. Hit: 8 (2d4 + 3) bludgeoning damage.",attack_bonus:0}]},{name:"Erinyes",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:18,hp:153,hit_dice:"18d8 + 72",speed:"30 ft., fly 60 ft.",stats:[18,16,18,14,14,18],saves:[{dexterity:7},{constitution:8},{wisdom:6},{charisma:8}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"truesight 120 ft., passive Perception 12",languages:"Infernal, telepathy 120 ft.",cr:"12",traits:[{name:"Hellish Weapons",desc:"The erinyes's weapon attacks are magical and deal an extra 13 (3d8) poison damage on a hit (included in the attacks).",attack_bonus:0},{name:"Magic Resistance",desc:"The erinyes has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The erinyes makes three attacks",attack_bonus:0},{name:"Longsword",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) slashing damage, or 9 (1d10 + 4) slashing damage if used with two hands, plus 13 (3d8) poison damage.",attack_bonus:8,damage_dice:"1d8 + 3d8",damage_bonus:4},{name:"Longbow",desc:"Ranged Weapon Attack: +7 to hit, range 150/600 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 13 (3d8) poison damage, and the target must succeed on a DC 14 Constitution saving throw or be poisoned. The poison lasts until it is removed by the lesser restoration spell or similar magic.",attack_bonus:7,damage_dice:"1d8 + 3d8",damage_bonus:3},{name:"Variant: Rope of Entanglement",desc:"Some erinyes carry a rope of entanglement (detailed in the Dungeon Master's Guide). When such an erinyes uses its Multiattack, the erinyes can use the rope in place of two of the attacks.",attack_bonus:0}],reactions:[{name:"Parry",desc:"The erinyes adds 4 to its AC against one melee attack that would hit it. To do so, the erinyes must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Ettercap",size:"Medium",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:13,hp:44,hit_dice:"8d8 + 8",speed:"30 ft., climb 30 ft.",stats:[14,15,13,7,12,8],skillsaves:[{perception:3},{stealth:4},{survival:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"2",traits:[{name:"Spider Climb",desc:"The ettercap can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Sense",desc:"While in contact with a web, the ettercap knows the exact location of any other creature in contact with the same web.",attack_bonus:0},{name:"Web Walker",desc:"The ettercap ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The ettercap makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 6 (1d8 + 2) piercing damage plus 4 (1d8) poison damage. The target must succeed on a DC 11 Constitution saving throw or be poisoned for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Claws",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) slashing damage.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2},{name:"Web (Recharge 5-6)",desc:"Ranged Weapon Attack: +4 to hit, range 30/60 ft., one Large or smaller creature. Hit: The creature is restrained by webbing. As an action, the restrained creature can make a DC 11 Strength check, escaping from the webbing on a success. The effect ends if the webbing is destroyed. The webbing has AC 10, 5 hit points, is vulnerable to fire damage and immune to bludgeoning damage.",attack_bonus:0},{name:"Variant: Web Garrote",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one Medium or Small creature against which the ettercap has advantage on the attack roll. Hit: 4 (1d4 + 2) bludgeoning damage, and the target is grappled (escape DC 12). Until this grapple ends, the target can't breathe, and the ettercap has advantage on attack rolls against it.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Ettin",size:"Large",type:"giant",subtype:"",alignment:"chaotic evil",ac:12,hp:85,hit_dice:"10d10 + 30",speed:"40 ft.",stats:[21,8,17,6,10,8],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Giant, Orc",cr:"4",traits:[{name:"Two Heads",desc:"The ettin has advantage on Wisdom (Perception) checks and on saving throws against being blinded, charmed, deafened, frightened, stunned, and knocked unconscious.",attack_bonus:0},{name:"Wakeful",desc:"When one of the ettin's heads is asleep, its other head is awake.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The ettin makes two attacks: one with its battleaxe and one with its morningstar.",attack_bonus:0},{name:"Battleaxe",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 14 (2d8 + 5) slashing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:5},{name:"Morningstar",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 14 (2d8 + 5) piercing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:5}]},{name:"Fire Elemental",size:"Large",type:"elemental",subtype:"",alignment:"neutral",ac:13,hp:102,hit_dice:"12d10 + 36",speed:"50 ft.",stats:[10,17,16,6,10,7],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"fire, poison",condition_immunities:"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 10",languages:"Ignan",cr:"5",traits:[{name:"Fire Form",desc:"The elemental can move through a space as narrow as 1 inch wide without squeezing. A creature that touches the elemental or hits it with a melee attack while within 5 ft. of it takes 5 (1d10) fire damage. In addition, the elemental can enter a hostile creature's space and stop there. The first time it enters a creature's space on a turn, that creature takes 5 (1d10) fire damage and catches fire; until someone takes an action to douse the fire, the creature takes 5 (1d10) fire damage at the start of each of its turns.",attack_bonus:0,damage_dice:"5d10"},{name:"Illumination",desc:"The elemental sheds bright light in a 30-foot radius and dim light in an additional 30 ft..",attack_bonus:0},{name:"Water Susceptibility",desc:"For every 5 ft. the elemental moves in water, or for every gallon of water splashed on it, it takes 1 cold damage.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The elemental makes two touch attacks.",attack_bonus:0},{name:"Touch",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) fire damage. If the target is a creature or a flammable object, it ignites. Until a creature takes an action to douse the fire, the target takes 5 (1d10) fire damage at the start of each of its turns.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3}]},{name:"Fire Giant",size:"Huge",type:"giant",subtype:"",alignment:"lawful evil",ac:18,hp:162,hit_dice:"13d12 + 77",speed:"30 ft.",stats:[25,9,23,10,14,13],saves:[{dexterity:3},{constitution:10},{charisma:5}],skillsaves:[{athletics:11},{perception:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"passive Perception 16",languages:"Giant",cr:"9",actions:[{name:"Multiattack",desc:"The giant makes two greatsword attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 28 (6d6 + 7) slashing damage.",attack_bonus:11,damage_dice:"6d6",damage_bonus:7},{name:"Rock",desc:"Ranged Weapon Attack: +11 to hit, range 60/240 ft., one target. Hit: 29 (4d10 + 7) bludgeoning damage.",attack_bonus:11,damage_dice:"4d10",damage_bonus:7}]},{name:"Flesh Golem",size:"Medium",type:"construct",subtype:"",alignment:"neutral",ac:9,hp:93,hit_dice:"11d8 + 43",speed:"30 ft.",stats:[19,9,18,6,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning, poison; bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",condition_immunities:"charmed, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"understands the languages of its creator but can't speak",cr:"5",traits:[{name:"Berserk",desc:"Whenever the golem starts its turn with 40 hit points or fewer, roll a d6. On a 6, the golem goes berserk. On each of its turns while berserk, the golem attacks the nearest creature it can see. If no creature is near enough to move to and attack, the golem attacks an object, with preference for an object smaller than itself. Once the golem goes berserk, it continues to do so until it is destroyed or regains all its hit points.\\nThe golem's creator, if within 60 feet of the berserk golem, can try to calm it by speaking firmly and persuasively. The golem must be able to hear its creator, who must take an action to make a DC 15 Charisma (Persuasion) check. If the check succeeds, the golem ceases being berserk. If it takes damage while still at 40 hit points or fewer, the golem might go berserk again.",attack_bonus:0},{name:"Aversion of Fire",desc:"If the golem takes fire damage, it has disadvantage on attack rolls and ability checks until the end of its next turn.",attack_bonus:0},{name:"Immutable Form",desc:"The golem is immune to any spell or effect that would alter its form.",attack_bonus:0},{name:"Lightning Absorption",desc:"Whenever the golem is subjected to lightning damage, it takes no damage and instead regains a number of hit points equal to the lightning damage dealt.",attack_bonus:0},{name:"Magic Resistance",desc:"The golem has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The golem's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The golem makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4}]},{name:"Flying Snake",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:5,hit_dice:"2d4",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[4,18,11,2,12,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 11",languages:"",cr:"1/8",traits:[{name:"Flyby",desc:"The snake doesn't provoke opportunity attacks when it flies out of an enemy's reach.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 1 piercing damage plus 7 (3d4) poison damage.",attack_bonus:6,damage_bonus:1}]},{name:"Flying Sword",size:"Small",type:"construct",subtype:"",alignment:"unaligned",ac:17,hp:17,hit_dice:"5d6 + -1",speed:"0 ft., fly 50 ft. It can hover.",stats:[12,15,11,1,5,1],saves:[{dexterity:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison, psychic",condition_immunities:"blinded, charmed, deafened, frightened, paralyzed, petrified, poisoned",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 7",languages:"",cr:"1/4",traits:[{name:"Antimagic Susceptibility",desc:"The sword is incapacitated while in the area of an antimagic field. If targeted by dispel magic, the sword must succeed on a Constitution saving throw against the caster's spell save DC or fall unconscious for 1 minute.",attack_bonus:0},{name:"False Appearance",desc:"While the sword remains motionless and isn't flying, it is indistinguishable from a normal sword.",attack_bonus:0}],actions:[{name:"Longsword",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d8 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Frog",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:1,hit_dice:"1d4 + -2",speed:"20 ft., swim 20 ft.",stats:[1,13,8,1,8,3],skillsaves:[{perception:1},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 11",languages:"",cr:"0",traits:[{name:"Amphibious",desc:"The frog can breathe air and water",attack_bonus:0},{name:"Standing Leap",desc:"The frog's long jump is up to 10 ft. and its high jump is up to 5 ft., with or without a running start.",attack_bonus:0}]},{name:"Frost Giant",size:"Huge",type:"giant",subtype:"",alignment:"neutral evil",ac:15,hp:138,hit_dice:"12d12 + 60",speed:"40 ft.",stats:[23,9,21,9,10,12],saves:[{constitution:8},{wisdom:3},{charisma:4}],skillsaves:[{athletics:9},{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"passive Perception 13",languages:"Giant",cr:"8",actions:[{name:"Multiattack",desc:"The giant makes two greataxe attacks.",attack_bonus:0},{name:"Greataxe",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 25 (3d12 + 6) slashing damage.",attack_bonus:9,damage_dice:"3d12",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +9 to hit, range 60/240 ft., one target. Hit: 28 (4d10 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"4d10",damage_bonus:6}]},{name:"Gargoyle",size:"Medium",type:"elemental",subtype:"",alignment:"chaotic evil",ac:15,hp:52,hit_dice:"7d8 + 20",speed:"30 ft., fly 60 ft.",stats:[15,11,16,6,11,7],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",damage_immunities:"poison",condition_immunities:"exhaustion, petrified, poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"Terran",cr:"2",traits:[{name:"False Appearance",desc:"While the gargoyle remains motion less, it is indistinguishable from an inanimate statue.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The gargoyle makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Claws",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Gelatinous Cube",size:"Large",type:"ooze",subtype:"",alignment:"unaligned",ac:6,hp:84,hit_dice:"8d10 + 40",speed:"15 ft.",stats:[14,3,20,1,6,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, prone",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 8",languages:"",cr:"2",traits:[{name:"Ooze Cube",desc:"The cube takes up its entire space. Other creatures can enter the space, but a creature that does so is subjected to the cube's Engulf and has disadvantage on the saving throw.\\nCreatures inside the cube can be seen but have total cover.\\nA creature within 5 feet of the cube can take an action to pull a creature or object out of the cube. Doing so requires a successful DC 12 Strength check, and the creature making the attempt takes 10 (3d6) acid damage.\\nThe cube can hold only one Large creature or up to four Medium or smaller creatures inside it at a time.",attack_bonus:0},{name:"Transparent",desc:"Even when the cube is in plain sight, it takes a successful DC 15 Wisdom (Perception) check to spot a cube that has neither moved nor attacked. A creature that tries to enter the cube's space while unaware of the cube is surprised by the cube.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 10 (3d6) acid damage.",attack_bonus:4,damage_dice:"3d6"},{name:"Engulf",desc:"The cube moves up to its speed. While doing so, it can enter Large or smaller creatures' spaces. Whenever the cube enters a creature's space, the creature must make a DC 12 Dexterity saving throw.\\nOn a successful save, the creature can choose to be pushed 5 feet back or to the side of the cube. A creature that chooses not to be pushed suffers the consequences of a failed saving throw.\\nOn a failed save, the cube enters the creature's space, and the creature takes 10 (3d6) acid damage and is engulfed. The engulfed creature can't breathe, is restrained, and takes 21 (6d6) acid damage at the start of each of the cube's turns. When the cube moves, the engulfed creature moves with it.\\nAn engulfed creature can try to escape by taking an action to make a DC 12 Strength check. On a success, the creature escapes and enters a space of its choice within 5 feet of the cube.",attack_bonus:0}]},{name:"Ghast",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:13,hp:36,hit_dice:"8d8",speed:"30 ft.",stats:[16,17,10,11,10,8],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"necrotic",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"Common",cr:"2",traits:[{name:"Stench",desc:"Any creature that starts its turn within 5 ft. of the ghast must succeed on a DC 10 Constitution saving throw or be poisoned until the start of its next turn. On a successful saving throw, the creature is immune to the ghast's Stench for 24 hours.",attack_bonus:0},{name:"Turn Defiance",desc:"The ghast and any ghouls within 30 ft. of it have advantage on saving throws against effects that turn undead.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 12 (2d8 + 3) piercing damage.",attack_bonus:3,damage_dice:"2d8",damage_bonus:3},{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage. If the target is a creature other than an undead, it must succeed on a DC 10 Constitution saving throw or be paralyzed for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Ghost",size:"Medium",type:"undead",subtype:"",alignment:"any alignment",ac:11,hp:45,hit_dice:"10d8",speed:"0 ft., fly 40 ft. It can hover.",stats:[7,13,10,10,12,17],damage_vulnerabilities:"",damage_resistances:"acid, fire, lightning, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"cold, necrotic, poison",condition_immunities:"charmed, exhaustion, frightened, grappled, paralyzed, petrified, poisoned, prone, restrained",senses:"darkvision 60 ft., passive Perception 11",languages:"any languages it knew in life",cr:"4",traits:[{name:"Ethereal Sight",desc:"The ghost can see 60 ft. into the Ethereal Plane when it is on the Material Plane, and vice versa.",attack_bonus:0},{name:"Incorporeal Movement",desc:"The ghost can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.",attack_bonus:0}],actions:[{name:"Withering Touch",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 17 (4d6 + 3) necrotic damage.",attack_bonus:5,damage_dice:"4d6",damage_bonus:3},{name:"Etherealness",desc:"The ghost enters the Ethereal Plane from the Material Plane, or vice versa. It is visible on the Material Plane while it is in the Border Ethereal, and vice versa, yet it can't affect or be affected by anything on the other plane.",attack_bonus:0},{name:"Horrifying Visage",desc:"Each non-undead creature within 60 ft. of the ghost that can see it must succeed on a DC 13 Wisdom saving throw or be frightened for 1 minute. If the save fails by 5 or more, the target also ages 1d4 _ 10 years. A frightened target can repeat the saving throw at the end of each of its turns, ending the frightened condition on itself on a success. If a target's saving throw is successful or the effect ends for it, the target is immune to this ghost's Horrifying Visage for the next 24 hours. The aging effect can be reversed with a greater restoration spell, but only within 24 hours of it occurring.",attack_bonus:0},{name:"Possession (Recharge 6)",desc:"One humanoid that the ghost can see within 5 ft. of it must succeed on a DC 13 Charisma saving throw or be possessed by the ghost; the ghost then disappears, and the target is incapacitated and loses control of its body. The ghost now controls the body but doesn't deprive the target of awareness. The ghost can't be targeted by any attack, spell, or other effect, except ones that turn undead, and it retains its alignment, Intelligence, Wisdom, Charisma, and immunity to being charmed and frightened. It otherwise uses the possessed target's statistics, but doesn't gain access to the target's knowledge, class features, or proficiencies.\\nThe possession lasts until the body drops to 0 hit points, the ghost ends it as a bonus action, or the ghost is turned or forced out by an effect like the dispel evil and good spell. When the possession ends, the ghost reappears in an unoccupied space within 5 ft. of the body. The target is immune to this ghost's Possession for 24 hours after succeeding on the saving throw or after the possession ends.",attack_bonus:0}]},{name:"Ghoul",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"30 ft.",stats:[13,15,10,7,10,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"Common",cr:"1",actions:[{name:"Bite",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one creature. Hit: 9 (2d6 + 2) piercing damage.",attack_bonus:2,damage_dice:"2d6",damage_bonus:2},{name:"Claws",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) slashing damage. If the target is a creature other than an elf or undead, it must succeed on a DC 10 Constitution saving throw or be paralyzed for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0}]},{name:"Giant Ape",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:157,hit_dice:"15d12 + 59",speed:"40 ft., climb 40 ft.",stats:[23,14,18,7,12,7],skillsaves:[{athletics:9},{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"7",actions:[{name:"Multiattack",desc:"The ape makes two fist attacks.",attack_bonus:0},{name:"Fist",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 22 (3d10 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"3d10",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +9 to hit, range 50/100 ft., one target. Hit: 30 (7d6 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"7d6",damage_bonus:6}]},{name:"Giant Badger",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:13,hit_dice:"2d8 + 4",speed:"30 ft., burrow 10 ft.",stats:[13,10,15,2,12,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 11",languages:"",cr:"1/4",traits:[{name:"Keen Smell",desc:"The badger has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The badger makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1},{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 6 (2d4 + 1) slashing damage.",attack_bonus:3,damage_dice:"2d4",damage_bonus:1}]},{name:"Giant Bat",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:22,hit_dice:"4d10",speed:"10 ft., fly 60 ft.",stats:[15,16,11,2,12,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 11",languages:"",cr:"1/4",traits:[{name:"Echolocation",desc:"The bat can't use its blindsight while deafened.",attack_bonus:0},{name:"Keen Hearing",desc:"The bat has advantage on Wisdom (Perception) checks that rely on hearing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Giant Boar",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:42,hit_dice:"5d10 + 14",speed:"40 ft.",stats:[17,10,16,2,7,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 8",languages:"",cr:"2",traits:[{name:"Charge",desc:"If the boar moves at least 20 ft. straight toward a target and then hits it with a tusk attack on the same turn, the target takes an extra 7 (2d6) slashing damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"},{name:"Relentless (Recharges after a Short or Long Rest)",desc:"If the boar takes 10 damage or less that would reduce it to 0 hit points, it is reduced to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Tusk",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Giant Centipede",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:4,hit_dice:"1d6",speed:"30 ft., climb 30 ft.",stats:[5,14,12,1,7,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., passive Perception 8",languages:"",cr:"1/4",actions:[{name:"Bite",desc:"Bite. Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) piercing damage, and the target must succeed on a DC 11 Constitution saving throw or take 10 (3d6) poison damage. If the poison damage reduces the target to 0 hit points, the target is stable but poisoned for 1 hour, even after regaining hit points, and is paralyzed while poisoned in this way.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Giant Constrictor Snake",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:60,hit_dice:"8d12 + 8",speed:"30 ft., swim 30 ft.",stats:[19,14,12,1,10,3],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 12",languages:"",cr:"2",actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one creature. Hit: 11 (2d6 + 4) piercing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4},{name:"Constrict",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one creature. Hit: 13 (2d8 + 4) bludgeoning damage, and the target is grappled (escape DC 16). Until this grapple ends, the creature is restrained, and the snake can't constrict another target.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4}]},{name:"Giant Crab",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:15,hp:13,hit_dice:"3d8 + -1",speed:"30 ft., swim 30 ft.",stats:[13,15,11,1,9,3],skillsaves:[{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., passive Perception 9",languages:"",cr:"1/8",traits:[{name:"Amphibious",desc:"The crab can breathe air and water.",attack_bonus:0}],actions:[{name:"Claw",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) bludgeoning damage, and the target is grappled (escape DC 11). The crab has two claws, each of which can grapple only one target.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Giant Crocodile",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:85,hit_dice:"9d12 + 26",speed:"30 ft., swim 50 ft.",stats:[21,9,17,2,10,7],skillsaves:[{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"5",traits:[{name:"Hold Breath",desc:"The crocodile can hold its breath for 30 minutes.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The crocodile makes two attacks: one with its bite and one with its tail.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 21 (3d10 + 5) piercing damage, and the target is grappled (escape DC 16). Until this grapple ends, the target is restrained, and the crocodile can't bite another target.",attack_bonus:8,damage_dice:"3d10",damage_bonus:5},{name:"Tail",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target not grappled by the crocodile. Hit: 14 (2d8 + 5) bludgeoning damage. If the target is a creature, it must succeed on a DC 16 Strength saving throw or be knocked prone.",attack_bonus:8,damage_dice:"2d8",damage_bonus:5}]},{name:"Giant Eagle",size:"Large",type:"beast",subtype:"",alignment:"neutral good",ac:13,hp:26,hit_dice:"4d10 + 4",speed:"10 ft., fly 80 ft.",stats:[16,17,13,8,14,10],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"Giant Eagle, understands Common and Auran but can't speak",cr:"1",traits:[{name:"Keen Sight",desc:"The eagle has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The eagle makes two attacks: one with its beak and one with its talons.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Talons",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Giant Elk",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:15,hp:42,hit_dice:"5d12 + 9",speed:"60 ft.",stats:[19,16,14,7,14,10],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"Giant Elk, understands Common, Elvish, and Sylvan but can't speak",cr:"2",traits:[{name:"Charge",desc:"If the elk moves at least 20 ft. straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 7 (2d6) damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4},{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one prone creature. Hit: 22 (4d8 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"4d8",damage_bonus:4}]},{name:"Giant Fire Beetle",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:4,hit_dice:"1d6",speed:"30 ft.",stats:[8,10,12,1,7,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., passive Perception 8",languages:"",cr:"0",traits:[{name:"Illumination",desc:"The beetle sheds bright light in a 10-foot radius and dim light for an additional 10 ft..",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +1 to hit, reach 5 ft., one target. Hit: 2 (1d6 \u2014 1) slashing damage.",attack_bonus:1,damage_dice:"1d6",damage_bonus:-1}]},{name:"Giant Frog",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:18,hit_dice:"4d8",speed:"30 ft., swim 30 ft.",stats:[12,13,11,2,10,3],skillsaves:[{perception:2},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 12",languages:"",cr:"1/4",traits:[{name:"Amphibious",desc:"The frog can breathe air and water",attack_bonus:0},{name:"Standing Leap",desc:"The frog's long jump is up to 20 ft. and its high jump is up to 10 ft., with or without a running start.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) piercing damage, and the target is grappled (escape DC 11). Until this grapple ends, the target is restrained, and the frog can't bite another target.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1},{name:"Swallow",desc:"The frog makes one bite attack against a Small or smaller target it is grappling. If the attack hits, the target is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the frog, and it takes 5 (2d4) acid damage at the start of each of the frog's turns. The frog can have only one target swallowed at a time. If the frog dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 5 ft. of movement, exiting prone.",attack_bonus:0}]},{name:"Giant Goat",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d10 + 2",speed:"40 ft.",stats:[17,11,12,3,12,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"",cr:"1/2",traits:[{name:"Charge",desc:"If the goat moves at least 20 ft. straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 5 (2d4) bludgeoning damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d4"},{name:"Sure-Footed",desc:"The goat has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.",attack_bonus:0}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (2d4 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"2d4",damage_bonus:3}]},{name:"Giant Hyena",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:45,hit_dice:"6d10 + 12",speed:"50 ft.",stats:[16,14,14,2,12,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1",traits:[{name:"Rampage",desc:"When the hyena reduces a creature to 0 hit points with a melee attack on its turn, the hyena can take a bonus action to move up to half its speed and make a bite attack.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3}]},{name:"Giant Lizard",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:19,hit_dice:"3d10 + 2",speed:"30 ft., climb 30 ft.",stats:[15,12,13,2,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 10",languages:"",cr:"1/4",traits:[{name:"Variant: Hold Breath",desc:"The lizard can hold its breath for 15 minutes. (A lizard that has this trait also has a swimming speed of 30 feet.)",attack_bonus:0},{name:"Variant: Spider Climb",desc:"The lizard can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Giant Octopus",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:52,hit_dice:"8d10 + 8",speed:"10 ft., swim 60 ft.",stats:[17,13,13,4,10,4],skillsaves:[{perception:4},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"",cr:"1",traits:[{name:"Hold Breath",desc:"While out of water, the octopus can hold its breath for 1 hour.",attack_bonus:0},{name:"Underwater Camouflage",desc:"The octopus has advantage on Dexterity (Stealth) checks made while underwater.",attack_bonus:0},{name:"Water Breathing",desc:"The octopus can breathe only underwater.",attack_bonus:0}],actions:[{name:"Tentacles",desc:"Melee Weapon Attack: +5 to hit, reach 15 ft., one target. Hit: 10 (2d6 + 3) bludgeoning damage. If the target is a creature, it is grappled (escape DC 16). Until this grapple ends, the target is restrained, and the octopus can't use its tentacles on another target.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3},{name:"Ink Cloud (Recharges after a Short or Long Rest)",desc:"A 20-foot-radius cloud of ink extends all around the octopus if it is underwater. The area is heavily obscured for 1 minute, although a significant current can disperse the ink. After releasing the ink, the octopus can use the Dash action as a bonus action.",attack_bonus:0}]},{name:"Giant Owl",size:"Large",type:"beast",subtype:"",alignment:"neutral",ac:12,hp:19,hit_dice:"3d10 + 2",speed:"5 ft., fly 60 ft.",stats:[13,15,12,8,13,10],skillsaves:[{perception:5},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 15",languages:"Giant Owl, understands Common, Elvish, and Sylvan but can't speak",cr:"1/4",traits:[{name:"Flyby",desc:"The owl doesn't provoke opportunity attacks when it flies out of an enemy's reach.",attack_bonus:0},{name:"Keen Hearing and Sight",desc:"The owl has advantage on Wisdom (Perception) checks that rely on hearing or sight.",attack_bonus:0}],actions:[{name:"Talons",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 8 (2d6 + 1) slashing damage.",attack_bonus:3,damage_dice:"2d6",damage_bonus:1}]},{name:"Giant Poisonous Snake",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:11,hit_dice:"2d8 + 2",speed:"30 ft., swim 30 ft.",stats:[10,18,13,2,10,3],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 12",languages:"",cr:"1/4",actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 6 (1d4 + 4) piercing damage, and the target must make a DC 11 Constitution saving throw, taking 10 (3d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:6,damage_dice:"1d4",damage_bonus:4}]},{name:"Giant Rat",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:7,hit_dice:"2d6",speed:"30 ft.",stats:[7,15,11,2,10,4],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"",cr:"1/8",traits:[{name:"Keen Smell",desc:"The rat has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The rat has advantage on an attack roll against a creature if at least one of the rat's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Giant Rat (Diseased)",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:7,hit_dice:"2d6",speed:"30 ft.",stats:[7,15,11,2,10,4],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"",cr:"1/8",actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 2) piercing damage. If the target is a creature, it must succeed on a DC 10 Constitution saving throw or contract a disease. Until the disease is cured, the target can't regain hit points except by magical means, and the target's hit point maximum decreases by 3 (1d6) every 24 hours. If the target's hit point maximum drops to 0 as a result of this disease, the target dies.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Giant Scorpion",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:15,hp:52,hit_dice:"7d10 + 13",speed:"40 ft.",stats:[15,13,15,1,9,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 9",languages:"",cr:"3",actions:[{name:"Claw",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) bludgeoning damage, and the target is grappled (escape DC 12). The scorpion has two claws, each of which can grapple only one target.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Multiattack",desc:"The scorpion makes three attacks: two with its claws and one with its sting.",attack_bonus:0},{name:"Sting",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 7 (1d10 + 2) piercing damage, and the target must make a DC 12 Constitution saving throw, taking 22 (4d10) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2}]},{name:"Giant Sea Horse",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:16,hit_dice:"3d10 + -1",speed:"0 ft., swim 40 ft.",stats:[12,15,11,2,12,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"",cr:"1/2",traits:[{name:"Charge",desc:"If the sea horse moves at least 20 ft. straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 7 (2d6) bludgeoning damage. If the target is a creature, it must succeed on a DC 11 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"},{name:"Water Breathing",desc:"The sea horse can breathe only underwater.",attack_bonus:0}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) bludgeoning damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Giant Shark",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:126,hit_dice:"11d12 + 54",speed:"swim 50 ft.",stats:[23,11,21,1,10,5],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 60 ft., passive Perception 13",languages:"",cr:"5",traits:[{name:"Blood Frenzy",desc:"The shark has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Water Breathing",desc:"The shark can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bite",desc:"Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 22 (3d10 + 6) piercing damage.",attack_bonus:9,damage_dice:"3d10",damage_bonus:6}]},{name:"Giant Spider",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:26,hit_dice:"4d10 + 4",speed:"30 ft., climb 30 ft.",stats:[14,16,12,2,11,4],skillsaves:[{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 10",languages:"",cr:"1",traits:[{name:"Spider Climb",desc:"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Sense",desc:"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.",attack_bonus:0},{name:"Web Walker",desc:"The spider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 7 (1d8 + 3) piercing damage, and the target must make a DC 11 Constitution saving throw, taking 9 (2d8) poison damage on a failed save, or half as much damage on a successful one. If the poison damage reduces the target to 0 hit points, the target is stable but poisoned for 1 hour, even after regaining hit points, and is paralyzed while poisoned in this way.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Web (Recharge 5-6)",desc:"Ranged Weapon Attack: +5 to hit, range 30/60 ft., one creature. Hit: The target is restrained by webbing. As an action, the restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to bludgeoning, poison, and psychic damage).",attack_bonus:5}]},{name:"Giant Toad",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:39,hit_dice:"6d10 + 6",speed:"20 ft., swim 40 ft.",stats:[15,13,13,2,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 10",languages:"",cr:"1",traits:[{name:"Amphibious",desc:"The toad can breathe air and water",attack_bonus:0},{name:"Standing Leap",desc:"The toad's long jump is up to 20 ft. and its high jump is up to 10 ft., with or without a running start.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage plus 5 (1d10) poison damage, and the target is grappled (escape DC 13). Until this grapple ends, the target is restrained, and the toad can't bite another target.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2},{name:"Swallow",desc:"The toad makes one bite attack against a Medium or smaller target it is grappling. If the attack hits, the target is swallowed, and the grapple ends. The swallowed target is blinded and restrained, it has total cover against attacks and other effects outside the toad, and it takes 10 (3d6) acid damage at the start of each of the toad's turns. The toad can have only one target swallowed at a time.\\nIf the toad dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 5 feet of movement, exiting prone.",attack_bonus:0}]},{name:"Giant Vulture",size:"Large",type:"beast",subtype:"",alignment:"neutral evil",ac:10,hp:22,hit_dice:"3d10 + 5",speed:"10 ft., fly 60 ft.",stats:[15,10,15,6,12,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"understands Common but can't speak",cr:"1",traits:[{name:"Keen Sight and Smell",desc:"The vulture has advantage on Wisdom (Perception) checks that rely on sight or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The vulture has advantage on an attack roll against a creature if at least one of the vulture's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The vulture makes two attacks: one with its beak and one with its talons.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2},{name:"Talons",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) slashing damage.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2}]},{name:"Giant Wasp",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:13,hit_dice:"3d8 + -1",speed:"10 ft., fly 50 ft., swim 50 ft.",stats:[10,14,10,1,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/2",actions:[{name:"Sting",desc:"Sting. Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) piercing damage, and the target must make a DC 11 Constitution saving throw, taking 10 (3d6) poison damage on a failed save, or half as much damage on a successful one. If the poison damage reduces the target to 0 hit points, the target is stable but poisoned for 1 hour, even after regaining hit points, and is paralyzed while poisoned in this way.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Giant Weasel",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:9,hit_dice:"2d8",speed:"40 ft.",stats:[11,16,10,4,12,5],skillsaves:[{perception:3},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"1/8",traits:[{name:"Keen Hearing and Smell",desc:"The weasel has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 5 (1d4 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3}]},{name:"Giant Wolf Spider",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:11,hit_dice:"2d8 + 2",speed:"40 ft., climb 40 ft.",stats:[12,16,13,3,12,4],skillsaves:[{perception:3},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 13",languages:"",cr:"1/4",traits:[{name:"Spider Climb",desc:"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Sense",desc:"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.",attack_bonus:0},{name:"Web Walker",desc:"The spider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 4 (1d6 + 1) piercing damage, and the target must make a DC 11 Constitution saving throw, taking 7 (2d6) poison damage on a failed save, or half as much damage on a successful one. If the poison damage reduces the target to 0 hit points, the target is stable but poisoned for 1 hour, even after regaining hit points, and is paralyzed while poisoned in this way.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Gibbering Mouther",size:"Medium",type:"aberration",subtype:"",alignment:"neutral",ac:9,hp:67,hit_dice:"9d8 + 26",speed:"10 ft., swim 10 ft.",stats:[10,8,16,3,10,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"prone",senses:"darkvision 60 ft., passive Perception 10",languages:"",cr:"2",traits:[{name:"Aberrant Ground",desc:"The ground in a 10-foot radius around the mouther is doughlike difficult terrain. Each creature that starts its turn in that area must succeed on a DC 10 Strength saving throw or have its speed reduced to 0 until the start of its next turn.",attack_bonus:0},{name:"Gibbering",desc:"The mouther babbles incoherently while it can see any creature and isn't incapacitated. Each creature that starts its turn within 20 feet of the mouther and can hear the gibbering must succeed on a DC 10 Wisdom saving throw. On a failure, the creature can't take reactions until the start of its next turn and rolls a d8 to determine what it does during its turn. On a 1 to 4, the creature does nothing. On a 5 or 6, the creature takes no action or bonus action and uses all its movement to move in a randomly determined direction. On a 7 or 8, the creature makes a melee attack against a randomly determined creature within its reach or does nothing if it can't make such an attack.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The gibbering mouther makes one bite attack and, if it can, uses its Blinding Spittle.",attack_bonus:0},{name:"Bites",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one creature. Hit: 17 (5d6) piercing damage. If the target is Medium or smaller, it must succeed on a DC 10 Strength saving throw or be knocked prone. If the target is killed by this damage, it is absorbed into the mouther.",attack_bonus:2,damage_dice:"5d6"},{name:"Blinding Spittle (Recharge 5-6)",desc:"The mouther spits a chemical glob at a point it can see within 15 feet of it. The glob explodes in a blinding flash of light on impact. Each creature within 5 feet of the flash must succeed on a DC 13 Dexterity saving throw or be blinded until the end of the mouther's next turn.",attack_bonus:0}]},{name:"Glabrezu",size:"Large",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:17,hp:157,hit_dice:"15d10 + 74",speed:"40 ft.",stats:[20,15,21,19,17,16],saves:[{strength:9},{constitution:9},{wisdom:7},{charisma:7}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"truesight 120 ft., passive Perception 13",languages:"Abyssal, telepathy 120 ft.",cr:"9",traits:[{name:"Innate Spellcasting",desc:"The glabrezu's spellcasting ability is Intelligence (spell save DC 16). The glabrezu can innately cast the following spells, requiring no material components:\\nAt will: darkness, detect magic, dispel magic\\n1/day each: confusion, fly, power word stun",attack_bonus:0},{name:"Magic Resistance",desc:"The glabrezu has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The glabrezu makes four attacks: two with its pincers and two with its fists. Alternatively, it makes two attacks with its pincers and casts one spell.",attack_bonus:0},{name:"Pincer",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 16 (2d10 + 5) bludgeoning damage. If the target is a Medium or smaller creature, it is grappled (escape DC 15). The glabrezu has two pincers, each of which can grapple only one target.",attack_bonus:9,damage_dice:"2d10",damage_bonus:5},{name:"Fist",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) bludgeoning damage.",attack_bonus:9,damage_dice:"2d4",damage_bonus:2},{name:"Variant: Summon Demon (1/Day)",desc:"The demon chooses what to summon and attempts a magical summoning.\\nA glabrezu has a 30 percent chance of summoning 1d3 vrocks, 1d2 hezrous, or one glabrezu.\\nA summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Gladiator",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:16,hp:112,hit_dice:"15d8 + 44",speed:"30 ft.",stats:[18,15,16,10,12,15],saves:[{strength:7},{dexterity:5},{constitution:6}],skillsaves:[{intimidation:5},{athletics:10}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"any one language (usually Common)",cr:"5",traits:[{name:"Brave",desc:"The gladiator has advantage on saving throws against being frightened.",attack_bonus:0},{name:"Brute",desc:"A melee weapon deals one extra die of its damage when the gladiator hits with it (included in the attack).",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The gladiator makes three melee attacks or two ranged attacks.",attack_bonus:0},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +7 to hit, reach 5 ft. and range 20/60 ft., one target. Hit: 11 (2d6 + 4) piercing damage, or 13 (2d8 + 4) piercing damage if used with two hands to make a melee attack.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Shield Bash",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one creature. Hit: 9 (2d4 + 4) bludgeoning damage. If the target is a Medium or smaller creature, it must succeed on a DC 15 Strength saving throw or be knocked prone.",attack_bonus:7,damage_dice:"2d4",damage_bonus:4}],reactions:[{name:"Parry",desc:"The gladiator adds 3 to its AC against one melee attack that would hit it. To do so, the gladiator must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Gnoll",size:"Medium",type:"humanoid",subtype:"gnoll",alignment:"chaotic evil",ac:15,hp:22,hit_dice:"5d8 + -1",speed:"30 ft.",stats:[14,12,11,6,10,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Gnoll",cr:"1/2",traits:[{name:"Rampage",desc:"When the gnoll reduces a creature to 0 hit points with a melee attack on its turn, the gnoll can take a bonus action to move up to half its speed and make a bite attack.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 5 (1d6 + 2) piercing damage, or 6 (1d8 + 2) piercing damage if used with two hands to make a melee attack.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Longbow",desc:"Ranged Weapon Attack: +3 to hit, range 150/600 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Goat",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:4,hit_dice:"1d8 + -1",speed:"40 ft.",stats:[12,10,11,2,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"0",traits:[{name:"Charge",desc:"If the goat moves at least 20 ft. straight toward a target and then hits it with a ram attack on the same turn, the target takes an extra 2 (1d4) bludgeoning damage. If the target is a creature, it must succeed on a DC 10 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"1d4"},{name:"Sure-Footed",desc:"The goat has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.",attack_bonus:0}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 1) bludgeoning damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1}]},{name:"Goblin",size:"Small",type:"humanoid",subtype:"goblinoid",alignment:"neutral evil",ac:15,hp:7,hit_dice:"2d6",speed:"30 ft.",stats:[8,14,10,10,8,8],skillsaves:[{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 9",languages:"Common, Goblin",cr:"1/4",traits:[{name:"Nimble Escape",desc:"The goblin can take the Disengage or Hide action as a bonus action on each of its turns.",attack_bonus:0}],actions:[{name:"Scimitar",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Shortbow",desc:"Ranged Weapon Attack: +4 to hit, range 80/320 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Gold Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"lawful good",ac:17,hp:60,hit_dice:"8d8 + 24",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[19,14,17,14,11,16],saves:[{dexterity:4},{constitution:5},{wisdom:2},{charisma:5}],skillsaves:[{perception:4},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"3",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (1d10 + 4) piercing damage.",attack_bonus:6,damage_dice:"1d10",damage_bonus:4},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nFire Breath. The dragon exhales fire in a 15-foot cone. Each creature in that area must make a DC 13 Dexterity saving throw, taking 22 (4d10) fire damage on a failed save, or half as much damage on a successful one.\\nWeakening Breath. The dragon exhales gas in a 15-foot cone. Each creature in that area must succeed on a DC 13 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"4d10"}]},{name:"Gorgon",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:19,hp:114,hit_dice:"12d10 + 48",speed:"40 ft.",stats:[20,11,18,2,12,7],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"petrified",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"",cr:"5",traits:[{name:"Trampling Charge",desc:"If the gorgon moves at least 20 feet straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 16 Strength saving throw or be knocked prone. If the target is prone, the gorgon can make one attack with its hooves against it as a bonus action.",attack_bonus:0}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 18 (2d12 + 5) piercing damage.",attack_bonus:8,damage_dice:"2d12",damage_bonus:5},{name:"Hooves",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 16 (2d10 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"2d10",damage_bonus:5},{name:"Petrifying Breath (Recharge 5-6)",desc:"The gorgon exhales petrifying gas in a 30-foot cone. Each creature in that area must succeed on a DC 13 Constitution saving throw. On a failed save, a target begins to turn to stone and is restrained. The restrained target must repeat the saving throw at the end of its next turn. On a success, the effect ends on the target. On a failure, the target is petrified until freed by the greater restoration spell or other magic.",attack_bonus:0}]},{name:"Gray Ooze",size:"Medium",type:"ooze",subtype:"",alignment:"unaligned",ac:8,hp:22,hit_dice:"3d8 + 8",speed:"10 ft., climb 10 ft.",stats:[12,6,16,1,6,2],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"acid, cold, fire",damage_immunities:"",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, prone",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 8",languages:"",cr:"1/2",traits:[{name:"Amorphous",desc:"The ooze can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Corrode Metal",desc:"Any nonmagical weapon made of metal that hits the ooze corrodes. After dealing damage, the weapon takes a permanent and cumulative -1 penalty to damage rolls. If its penalty drops to -5, the weapon is destroyed. Nonmagical ammunition made of metal that hits the ooze is destroyed after dealing damage.\\nThe ooze can eat through 2-inch-thick, nonmagical metal in 1 round.",attack_bonus:0},{name:"False Appearance",desc:"While the ooze remains motionless, it is indistinguishable from an oily pool or wet rock.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) bludgeoning damage plus 7 (2d6) acid damage, and if the target is wearing nonmagical metal armor, its armor is partly corroded and takes a permanent and cumulative -1 penalty to the AC it offers. The armor is destroyed if the penalty reduces its AC to 10.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Green Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"lawful evil",ac:17,hp:38,hit_dice:"7d8 + 6",speed:"30 ft., fly 60 ft., swim 30 ft.",stats:[15,12,13,14,11,13],saves:[{dexterity:3},{constitution:3},{wisdom:2},{charisma:3}],skillsaves:[{perception:4},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage plus 3 (1d6) poison damage.",attack_bonus:4,damage_dice:"1d10 + 1d6",damage_bonus:3},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 15-foot cone. Each creature in that area must make a DC 11 Constitution saving throw, taking 21 (6d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"6d6"}]},{name:"Green Hag",size:"Medium",type:"fey",subtype:"",alignment:"neutral evil",ac:17,hp:82,hit_dice:"11d8 + 32",speed:"30 ft.",stats:[18,12,16,13,14,14],skillsaves:[{arcana:3},{deception:4},{perception:4},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Common, Draconic, Sylvan",cr:"3",traits:[{name:"Amphibious",desc:"The hag can breathe air and water.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The hag's innate spellcasting ability is Charisma (spell save DC 12). She can innately cast the following spells, requiring no material components:\\n\\nAt will: dancing lights, minor illusion, vicious mockery",attack_bonus:0},{name:"Mimicry",desc:"The hag can mimic animal sounds and humanoid voices. A creature that hears the sounds can tell they are imitations with a successful DC 14 Wisdom (Insight) check.",attack_bonus:0},{name:"Hag Coven",desc:"When hags must work together, they form covens, in spite of their selfish natures. A coven is made up of hags of any type, all of whom are equals within the group. However, each of the hags continues to desire more personal power.\\nA coven consists of three hags so that any arguments between two hags can be settled by the third. If more than three hags ever come together, as might happen if two covens come into conflict, the result is usually chaos.",attack_bonus:0},{name:"Shared Spellcasting (Coven Only)",desc:"While all three members of a hag coven are within 30 feet of one another, they can each cast the following spells from the wizard's spell list but must share the spell slots among themselves:\\n\\n\u2022 1st level (4 slots): identify, ray of sickness\\n\u2022 2nd level (3 slots): hold person, locate object\\n\u2022 3rd level (3 slots): bestow curse, counterspell, lightning bolt\\n\u2022 4th level (3 slots): phantasmal killer, polymorph\\n\u2022 5th level (2 slots): contact other plane, scrying\\n\u2022 6th level (1 slot): eye bite\\n\\nFor casting these spells, each hag is a 12th-level spellcaster that uses Intelligence as her spellcasting ability. The spell save DC is 12+the hag's Intelligence modifier, and the spell attack bonus is 4+the hag's Intelligence modifier.",attack_bonus:0},{name:"Hag Eye (Coven Only)",desc:"A hag coven can craft a magic item called a hag eye, which is made from a real eye coated in varnish and often fitted to a pendant or other wearable item. The hag eye is usually entrusted to a minion for safekeeping and transport. A hag in the coven can take an action to see what the hag eye sees if the hag eye is on the same plane of existence. A hag eye has AC 10, 1 hit point, and darkvision with a radius of 60 feet. If it is destroyed, each coven member takes 3d10 psychic damage and is blinded for 24 hours.\\nA hag coven can have only one hag eye at a time, and creating a new one requires all three members of the coven to perform a ritual. The ritual takes 1 hour, and the hags can't perform it while blinded. During the ritual, if the hags take any action other than performing the ritual, they must start over.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4},{name:"Illusory Appearance",desc:"The hag covers herself and anything she is wearing or carrying with a magical illusion that makes her look like another creature of her general size and humanoid shape. The illusion ends if the hag takes a bonus action to end it or if she dies.\\nThe changes wrought by this effect fail to hold up to physical inspection. For example, the hag could appear to have smooth skin, but someone touching her would feel her rough flesh. Otherwise, a creature must take an action to visually inspect the illusion and succeed on a DC 20 Intelligence (Investigation) check to discern that the hag is disguised.",attack_bonus:0},{name:"Invisible Passage",desc:"The hag magically turns invisible until she attacks or casts a spell, or until her concentration ends (as if concentrating on a spell). While invisible, she leaves no physical evidence of her passage, so she can be tracked only by magic. Any equipment she wears or carries is invisible with her.",attack_bonus:0}]},{name:"Grick",size:"Medium",type:"monstrosity",subtype:"",alignment:"neutral",ac:14,hp:27,hit_dice:"6d8",speed:"30 ft., climb 30 ft.",stats:[14,14,11,3,14,5],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing damage from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 12",languages:"",cr:"2",traits:[{name:"Stone Camouflage",desc:"The grick has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The grick makes one attack with its tentacles. If that attack hits, the grick can make one beak attack against the same target.",attack_bonus:0},{name:"Tentacles",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) slashing damage.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2},{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Griffon",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:12,hp:59,hit_dice:"7d10 + 20",speed:"30 ft., fly 80 ft.",stats:[18,15,16,2,13,8],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 15",languages:"",cr:"2",traits:[{name:"Keen Sight",desc:"The griffon has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The griffon makes two attacks: one with its beak and one with its claws.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:6,damage_dice:"1d8",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Grimlock",size:"Medium",type:"humanoid",subtype:"grimlock",alignment:"neutral evil",ac:11,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[16,12,12,9,8,6],skillsaves:[{athletics:5},{perception:3},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"blinded",condition_immunities:"",senses:"blindsight 30 ft. or 10 ft. while deafened (blind beyond this radius), passive Perception 13",languages:"Undercommon",cr:"1/4",traits:[{name:"Blind Senses",desc:"The grimlock can't use its blindsight while deafened and unable to smell.",attack_bonus:0},{name:"Keen Hearing and Smell",desc:"The grimlock has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Stone Camouflage",desc:"The grimlock has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0}],actions:[{name:"Spiked Bone Club",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 5 (1d4 + 3) bludgeoning damage plus 2 (1d4) piercing damage.",attack_bonus:5,damage_dice:"1d4 + 1d4",damage_bonus:5}]},{name:"Guard",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:16,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[13,12,12,10,11,10],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any one language (usually Common)",cr:"1/8",actions:[{name:"Spear",desc:"Melee or Ranged Weapon Attack: +3 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 4 (1d6 + 1) piercing damage or 5 (1d8 + 1) piercing damage if used with two hands to make a melee attack.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Guardian Naga",size:"Large",type:"monstrosity",subtype:"",alignment:"lawful good",ac:18,hp:127,hit_dice:"15d10 + 44",speed:"40 ft.",stats:[19,18,16,16,19,18],saves:[{dexterity:8},{constitution:7},{intelligence:7},{wisdom:8},{charisma:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, poisoned",senses:"darkvision 60 ft., passive Perception 14",languages:"Celestial, Common",cr:"10",traits:[{name:"Rejuvenation",desc:"If it dies, the naga returns to life in 1d6 days and regains all its hit points. Only a wish spell can prevent this trait from functioning.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one creature. Hit: 8 (1d8 + 4) piercing damage, and the target must make a DC 15 Constitution saving throw, taking 45 (10d8) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:8,damage_dice:"1d8",damage_bonus:4},{name:"Spit Poison",desc:"Ranged Weapon Attack: +8 to hit, range 15/30 ft., one creature. Hit: The target must make a DC 15 Constitution saving throw, taking 45 (10d8) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:8,damage_dice:"10d8"}],spells:["The naga is an 11th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 16, +8 to hit with spell attacks), and it needs only verbal components to cast its spells. It has the following cleric spells prepared:",{"Cantrips (at will)":"mending, sacred flame, thaumaturgy"},{"1st level (4 slots)":"command, cure wounds, shield of faith"},{"2nd level (3 slots)":"calm emotions, hold person"},{"3rd level (3 slots)":"bestow curse, clairvoyance"},{"4th level (3 slots)":"banishment, freedom of movement"},{"5th level (2 slots)":"flame strike, geas"},{"6th level (1 slot)":"true seeing"}]},{name:"Gynosphinx",size:"Large",type:"monstrosity",subtype:"",alignment:"lawful neutral",ac:17,hp:136,hit_dice:"16d10 + 48",speed:"40 ft., fly 60 ft.",stats:[18,15,16,18,18,18],skillsaves:[{arcana:12},{history:12},{perception:8},{religion:8}],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"psychic",condition_immunities:"charmed, frightened",senses:"truesight 120 ft., passive Perception 18",languages:"Common, Sphinx",cr:"11",traits:[{name:"Inscrutable",desc:"The sphinx is immune to any effect that would sense its emotions or read its thoughts, as well as any divination spell that it refuses. Wisdom (Insight) checks made to ascertain the sphinx's intentions or sincerity have disadvantage.",attack_bonus:0},{name:"Magic Weapons",desc:"The sphinx's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The sphinx makes two claw attacks.",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:9,damage_dice:"2d8",damage_bonus:4}],legendary_actions:[{name:"Claw Attack",desc:"The sphinx makes one claw attack.",attack_bonus:0},{name:"Teleport (Costs 2 Actions)",desc:"The sphinx magically teleports, along with any equipment it is wearing or carrying, up to 120 feet to an unoccupied space it can see.",attack_bonus:0},{name:"Cast a Spell (Costs 3 Actions)",desc:"The sphinx casts a spell from its list of prepared spells, using a spell slot as normal.",attack_bonus:0}],spells:["The sphinx is a 9th-level spellcaster. Its spellcasting ability is Intelligence (spell save DC 16, +8 to hit with spell attacks). It requires no material components to cast its spells. The sphinx has the following wizard spells prepared:",{"Cantrips (at will)":"mage hand, minor illusion, prestidigitation"},{"1st level (4 slots)":"detect magic, identify, shield"},{"2nd level (3 slots)":"darkness, locate object, suggestion"},{"3rd level (3 slots)":"dispel magic, remove curse, tongues"},{"4th level (3 slots)":"banishment, greater invisibility"},{"5th level (1 slot)":"legend lore"}]},{name:"Half-Red Dragon Veteran",size:"Medium",type:"humanoid",subtype:"human",alignment:"any alignment",ac:18,hp:65,hit_dice:"10d8 + 20",speed:"30 ft.",stats:[16,13,14,10,11,10],damage_vulnerabilities:"",damage_resistances:"fire",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 12",languages:"Common, Draconic",cr:"5",actions:[{name:"Multiattack",desc:"The veteran makes two longsword attacks. If it has a shortsword drawn, it can also make a shortsword attack.",attack_bonus:0},{name:"Longsword",desc:"Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage, or 8 (1d10 + 3) slashing damage if used with two hands.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Shortsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Heavy Crossbow",desc:"Ranged Weapon Attack: +3 to hit, range 100/400 ft., one target. Hit: 6 (1d10 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d10",damage_bonus:1},{name:"Fire Breath (Recharge 5-6)",desc:"The veteran exhales fire in a 15-foot cone. Each creature in that area must make a DC 15 Dexterity saving throw, taking 24 (7d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"7d6"}]},{name:"Harpy",size:"Medium",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:11,hp:38,hit_dice:"7d8 + 6",speed:"20 ft., fly 40 ft.",stats:[12,13,12,7,10,13],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"Common",cr:"1",actions:[{name:"Multiattack",desc:"The harpy makes two attacks: one with its claws and one with its club.",attack_bonus:0},{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 6 (2d4 + 1) slashing damage.",attack_bonus:3,damage_dice:"2d4",damage_bonus:1},{name:"Club",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 1) bludgeoning damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Luring Song",desc:"The harpy sings a magical melody. Every humanoid and giant within 300 ft. of the harpy that can hear the song must succeed on a DC 11 Wisdom saving throw or be charmed until the song ends. The harpy must take a bonus action on its subsequent turns to continue singing. It can stop singing at any time. The song ends if the harpy is incapacitated.\\nWhile charmed by the harpy, a target is incapacitated and ignores the songs of other harpies. If the charmed target is more than 5 ft. away from the harpy, the must move on its turn toward the harpy by the most direct route. It doesn't avoid opportunity attacks, but before moving into damaging terrain, such as lava or a pit, and whenever it takes damage from a source other than the harpy, a target can repeat the saving throw. A creature can also repeat the saving throw at the end of each of its turns. If a creature's saving throw is successful, the effect ends on it.\\nA target that successfully saves is immune to this harpy's song for the next 24 hours.",attack_bonus:0}]},{name:"Hawk",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:1,hit_dice:"1d4 + -2",speed:"10 ft., fly 60 ft.",stats:[5,16,8,2,14,6],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"0",traits:[{name:"Keen Sight",desc:"The hawk has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Talons",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 1 slashing damage.",attack_bonus:5,damage_bonus:1}]},{name:"Hell Hound",size:"Medium",type:"fiend",subtype:"",alignment:"lawful evil",ac:15,hp:45,hit_dice:"7d8 + 13",speed:"50 ft.",stats:[17,12,14,6,13,6],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 15",languages:"understands Infernal but can't speak it",cr:"3",traits:[{name:"Keen Hearing and Smell",desc:"The hound has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The hound has advantage on an attack roll against a creature if at least one of the hound's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 7 (2d6) fire damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Fire Breath (Recharge 5-6)",desc:"The hound exhales fire in a 15-foot cone. Each creature in that area must make a DC 12 Dexterity saving throw, taking 21 (6d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"6d6"}]},{name:"Hezrou",size:"Large",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:16,hp:136,hit_dice:"13d10 + 64",speed:"30 ft.",stats:[19,17,20,5,12,13],saves:[{strength:7},{constitution:8},{wisdom:4}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 11",languages:"Abyssal, telepathy 120 ft.",cr:"8",traits:[{name:"Magic Resistance",desc:"The hezrou has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Stench",desc:"Any creature that starts its turn within 10 feet of the hezrou must succeed on a DC 14 Constitution saving throw or be poisoned until the start of its next turn. On a successful saving throw, the creature is immune to the hezrou's stench for 24 hours.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The hezrou makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 15 (2d10 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Variant: Summon Demon (1/Day)",desc:"The demon chooses what to summon and attempts a magical summoning.\\nA hezrou has a 30 percent chance of summoning 2d6 dretches or one hezrou.\\nA summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Hill Giant",size:"Huge",type:"giant",subtype:"",alignment:"chaotic evil",ac:13,hp:105,hit_dice:"10d12 + 40",speed:"40 ft.",stats:[21,8,19,5,9,6],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"Giant",cr:"5",actions:[{name:"Multiattack",desc:"The giant makes two greatclub attacks.",attack_bonus:0},{name:"Greatclub",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 18 (3d8 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"3d8",damage_bonus:5},{name:"Rock",desc:"Ranged Weapon Attack: +8 to hit, range 60/240 ft., one target. Hit: 21 (3d10 + 5) bludgeoning damage.",attack_bonus:8,damage_dice:"3d10",damage_bonus:5}]},{name:"Hippogriff",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d10 + 2",speed:"40 ft, fly 60 ft.",stats:[17,13,13,2,12,8],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 15",languages:"",cr:"1",traits:[{name:"Keen Sight",desc:"The hippogriff has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The hippogriff makes two attacks: one with its beak and one with its claws.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3},{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Hobgoblin",size:"Medium",type:"humanoid",subtype:"goblinoid",alignment:"lawful evil",ac:18,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[13,12,12,10,10,9],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Common, Goblin",cr:"1/2",traits:[{name:"Martial Advantage",desc:"Once per turn, the hobgoblin can deal an extra 7 (2d6) damage to a creature it hits with a weapon attack if that creature is within 5 ft. of an ally of the hobgoblin that isn't incapacitated.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Longsword",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d8 + 1) slashing damage, or 6 (1d10 + 1) slashing damage if used with two hands.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1},{name:"Longbow",desc:"Ranged Weapon Attack: +3 to hit, range 150/600 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}]},{name:"Homunculus",size:"Tiny",type:"construct",subtype:"",alignment:"neutral",ac:13,hp:5,hit_dice:"2d4",speed:"20 ft., fly 40 ft.",stats:[4,15,11,10,10,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"understands the languages of its creator but can't speak",cr:"0",traits:[{name:"Telepathic Bond",desc:"While the homunculus is on the same plane of existence as its master, it can magically convey what it senses to its master, and the two can communicate telepathically.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 1 piercing damage, and the target must succeed on a DC 10 Constitution saving throw or be poisoned for 1 minute. If the saving throw fails by 5 or more, the target is instead poisoned for 5 (1d10) minutes and unconscious while poisoned in this way.",attack_bonus:4,damage_bonus:1}]},{name:"Horned Devil",size:"Large",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:18,hp:148,hit_dice:"17d10 + 54",speed:"20 ft., fly 60 ft.",stats:[22,17,21,12,16,17],saves:[{strength:10},{dexterity:7},{wisdom:7},{charisma:7}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 13",languages:"Infernal, telepathy 120 ft.",cr:"11",traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes three melee attacks: two with its fork and one with its tail. It can use Hurl Flame in place of any melee attack.",attack_bonus:0},{name:"Fork",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 15 (2d8 + 6) piercing damage.",attack_bonus:10,damage_dice:"2d8",damage_bonus:6},{name:"Tail",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 10 (1d8 + 6) piercing damage. If the target is a creature other than an undead or a construct, it must succeed on a DC 17 Constitution saving throw or lose 10 (3d6) hit points at the start of each of its turns due to an infernal wound. Each time the devil hits the wounded target with this attack, the damage dealt by the wound increases by 10 (3d6). Any creature can take an action to stanch the wound with a successful DC 12 Wisdom (Medicine) check. The wound also closes if the target receives magical healing.",attack_bonus:10,damage_dice:"1d8",damage_bonus:6},{name:"Hurl Flame",desc:"Ranged Spell Attack: +7 to hit, range 150 ft., one target. Hit: 14 (4d6) fire damage. If the target is a flammable object that isn't being worn or carried, it also catches fire.",attack_bonus:7,damage_dice:"4d6"}]},{name:"Hunter Shark",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:45,hit_dice:"6d10 + 12",speed:"swim 40 ft.",stats:[18,13,15,1,10,4],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 12",languages:"",cr:"2",traits:[{name:"Blood Frenzy",desc:"The shark has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Water Breathing",desc:"The shark can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) piercing damage.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4}]},{name:"Hydra",size:"Huge",type:"monstrosity",subtype:"",alignment:"unaligned",ac:15,hp:172,hit_dice:"15d12 + 74",speed:"30 ft., swim 30 ft.",stats:[20,12,20,2,10,7],skillsaves:[{perception:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 16",languages:"",cr:"8",traits:[{name:"Hold Breath",desc:"The hydra can hold its breath for 1 hour.",attack_bonus:0},{name:"Multiple Heads",desc:"The hydra has five heads. While it has more than one head, the hydra has advantage on saving throws against being blinded, charmed, deafened, frightened, stunned, and knocked unconscious.\\nWhenever the hydra takes 25 or more damage in a single turn, one of its heads dies. If all its heads die, the hydra dies.\\nAt the end of its turn, it grows two heads for each of its heads that died since its last turn, unless it has taken fire damage since its last turn. The hydra regains 10 hit points for each head regrown in this way.",attack_bonus:0},{name:"Reactive Heads",desc:"For each head the hydra has beyond one, it gets an extra reaction that can be used only for opportunity attacks.",attack_bonus:0},{name:"Wakeful",desc:"While the hydra sleeps, at least one of its heads is awake.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The hydra makes as many bite attacks as it has heads.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 10 (1d10 + 5) piercing damage.",attack_bonus:8,damage_dice:"1d10",damage_bonus:5}]},{name:"Hyena",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:5,hit_dice:"1d8",speed:"50 ft.",stats:[11,13,12,2,12,5],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",traits:[{name:"Pack Tactics",desc:"The hyena has advantage on an attack roll against a creature if at least one of the hyena's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 3 (1d6) piercing damage.",attack_bonus:2,damage_dice:"1d6"}]},{name:"Ice Devil",size:"Large",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:18,hp:180,hit_dice:"19d10 + 75",speed:"40 ft.",stats:[21,14,18,18,15,18],saves:[{dexterity:7},{constitution:9},{wisdom:7},{charisma:9}],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"blindsight 60 ft., darkvision 120 ft., passive Perception 12",languages:"Infernal, telepathy 120 ft.",cr:"14",traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the devil's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The devil has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The devil makes three attacks: one with its bite, one with its claws, and one with its tail.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) piercing damage plus 10 (3d6) cold damage.",attack_bonus:10,damage_dice:"2d6 + 3d6",damage_bonus:5},{name:"Claws",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 10 (2d4 + 5) slashing damage plus 10 (3d6) cold damage.",attack_bonus:10,damage_dice:"2d4 + 3d6",damage_bonus:5},{name:"Tail",desc:"Melee Weapon Attack:+10 to hit, reach 10 ft., one target. Hit: 12 (2d6 + 5) bludgeoning damage plus 10 (3d6) cold damage.",attack_bonus:10,damage_dice:"2d6 + 3d6",damage_bonus:5},{name:"Wall of Ice",desc:"The devil magically forms an opaque wall of ice on a solid surface it can see within 60 feet of it. The wall is 1 foot thick and up to 30 feet long and 10 feet high, or it's a hemispherical dome up to 20 feet in diameter.\\nWhen the wall appears, each creature in its space is pushed out of it by the shortest route. The creature chooses which side of the wall to end up on, unless the creature is incapacitated. The creature then makes a DC 17 Dexterity saving throw, taking 35 (10d6) cold damage on a failed save, or half as much damage on a successful one.\\nThe wall lasts for 1 minute or until the devil is incapacitated or dies. The wall can be damaged and breached; each 10-foot section has AC 5, 30 hit points, vulnerability to fire damage, and immunity to acid, cold, necrotic, poison, and psychic damage. If a section is destroyed, it leaves behind a sheet of frigid air in the space the wall occupied. Whenever a creature finishes moving through the frigid air on a turn, willingly or otherwise, the creature must make a DC 17 Constitution saving throw, taking 17 (5d6) cold damage on a failed save, or half as much damage on a successful one. The frigid air dissipates when the rest of the wall vanishes.",attack_bonus:0}]},{name:"Ice Mephit",size:"Small",type:"elemental",subtype:"",alignment:"neutral evil",ac:11,hp:21,hit_dice:"6d6",speed:"30 ft., fly 30 ft.",stats:[7,13,10,9,11,12],skillsaves:[{perception:2},{stealth:3}],damage_vulnerabilities:"bludgeoning, fire",damage_resistances:"",damage_immunities:"cold, poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 12",languages:"Aquan, Auran",cr:"1/2",traits:[{name:"Death Burst",desc:"When the mephit dies, it explodes in a burst of jagged ice. Each creature within 5 ft. of it must make a DC 10 Dexterity saving throw, taking 4 (1d8) slashing damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"1d8"},{name:"False Appearance",desc:"While the mephit remains motionless, it is indistinguishable from an ordinary shard of ice.",attack_bonus:0},{name:"Innate Spellcasting (1/Day)",desc:"The mephit can innately cast fog cloud, requiring no material components. Its innate spellcasting ability is Charisma.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one creature. Hit: 3 (1d4 + 1) slashing damage plus 2 (1d4) cold damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Frost Breath (Recharge 6)",desc:"The mephit exhales a 15-foot cone of cold air. Each creature in that area must succeed on a DC 10 Dexterity saving throw, taking 5 (2d4) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0},{name:"Variant: Summon Mephits (1/Day)",desc:"The mephit has a 25 percent chance of summoning 1d4 mephits of its kind. A summoned mephit appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other mephits. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Imp",size:"Tiny",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:13,hp:10,hit_dice:"3d4 + 2",speed:"20 ft., fly 40 ft.",stats:[6,17,13,11,12,14],skillsaves:[{deception:4},{insight:3},{persuasion:4},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical/nonsilver weapons",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 11",languages:"Infernal, Common",cr:"1",traits:[{name:"Shapechanger",desc:"The imp can use its action to polymorph into a beast form that resembles a rat (speed 20 ft.), a raven (20 ft., fly 60 ft.), or a spider (20 ft., climb 20 ft.), or back into its true form. Its statistics are the same in each form, except for the speed changes noted. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Devil's Sight",desc:"Magical darkness doesn't impede the imp's darkvision.",attack_bonus:0},{name:"Magic Resistance",desc:"The imp has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Variant: Familiar",desc:"The imp can serve another creature as a familiar, forming a telepathic bond with its willing master. While the two are bonded, the master can sense what the quasit senses as long as they are within 1 mile of each other. While the imp is within 10 feet of its master, the master shares the quasit's Magic Resistance trait. At any time and for any reason, the imp can end its service as a familiar, ending the telepathic bond.",attack_bonus:0}],actions:[{name:"Sting (Bite in Beast Form)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft ., one target. Hit: 5 (1d4 + 3) piercing damage, and the target must make on a DC 11 Constitution saving throw, taking 10 (3d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3},{name:"Invisibility",desc:"The imp magically turns invisible until it attacks, or until its concentration ends (as if concentrating on a spell). Any equipment the imp wears or carries is invisible with it.",attack_bonus:0}]},{name:"Invisible Stalker",size:"Medium",type:"elemental",subtype:"",alignment:"neutral",ac:14,hp:104,hit_dice:"16d8 + 32",speed:"50 ft., fly 50 ft. (hover)",stats:[16,19,14,10,15,11],skillsaves:[{perception:8},{stealth:10}],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 18",languages:"Auran, understands Common but doesn't speak it",cr:"6",traits:[{name:"Invisibility",desc:"The stalker is invisible.",attack_bonus:0},{name:"Faultless Tracker",desc:"The stalker is given a quarry by its summoner. The stalker knows the direction and distance to its quarry as long as the two of them are on the same plane of existence. The stalker also knows the location of its summoner.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The stalker makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3}]},{name:"Iron Golem",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:20,hp:210,hit_dice:"20d10 + 100",speed:"30 ft.",stats:[24,9,20,3,11,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire, poison, psychic; bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",condition_immunities:"charmed, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"understands the languages of its creator but can't speak",cr:"16",traits:[{name:"Fire Absorption",desc:"Whenever the golem is subjected to fire damage, it takes no damage and instead regains a number of hit points equal to the fire damage dealt.",attack_bonus:0},{name:"Immutable Form",desc:"The golem is immune to any spell or effect that would alter its form.",attack_bonus:0},{name:"Magic Resistance",desc:"The golem has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The golem's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The golem makes two melee attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +13 to hit, reach 5 ft., one target. Hit: 20 (3d8 + 7) bludgeoning damage.",attack_bonus:13,damage_dice:"3d8",damage_bonus:7},{name:"Sword",desc:"Melee Weapon Attack: +13 to hit, reach 10 ft., one target. Hit: 23 (3d10 + 7) slashing damage.",attack_bonus:13,damage_dice:"3d10",damage_bonus:7},{name:"Poison Breath (Recharge 5-6)",desc:"The golem exhales poisonous gas in a 15-foot cone. Each creature in that area must make a DC 19 Constitution saving throw, taking 45 (l0d8) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"10d8"}]},{name:"Jackal",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:3,hit_dice:"1d6 + -1",speed:"40 ft.",stats:[8,15,11,3,12,6],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",traits:[{name:"Keen Hearing and Smell",desc:"The jackal has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The jackal has advantage on an attack roll against a creature if at least one of the jackal's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +1 to hit, reach 5 ft., one target. Hit: 1 (1d4 \u2014 1) piercing damage.",attack_bonus:1,damage_dice:"1d4",damage_bonus:-1}]},{name:"Killer Whale",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:90,hit_dice:"12d12 + 12",speed:"swim 60 ft.",stats:[19,10,13,3,12,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 120 ft., passive Perception 13",languages:"",cr:"3",traits:[{name:"Echolocation",desc:"The whale can't use its blindsight while deafened.",attack_bonus:0},{name:"Hold Breath",desc:"The whale can hold its breath for 30 minutes",attack_bonus:0},{name:"Keen Hearing",desc:"The whale has advantage on Wisdom (Perception) checks that rely on hearing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 21 (5d6 + 4) piercing damage.",attack_bonus:0}]},{name:"Knight",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:18,hp:52,hit_dice:"8d8 + 16",speed:"30 ft.",stats:[16,11,14,11,11,15],saves:[{constitution:4},{wisdom:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"3",traits:[{name:"Brave",desc:"The knight has advantage on saving throws against being frightened.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The knight makes two melee attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3},{name:"Heavy Crossbow",desc:"Ranged Weapon Attack: +2 to hit, range 100/400 ft., one target. Hit: 5 (1d10) piercing damage.",attack_bonus:2,damage_dice:"1d10"},{name:"Leadership (Recharges after a Short or Long Rest)",desc:"For 1 minute, the knight can utter a special command or warning whenever a nonhostile creature that it can see within 30 ft. of it makes an attack roll or a saving throw. The creature can add a d4 to its roll provided it can hear and understand the knight. A creature can benefit from only one Leadership die at a time. This effect ends if the knight is incapacitated.",attack_bonus:0}],reactions:[{name:"Parry",desc:"The knight adds 2 to its AC against one melee attack that would hit it. To do so, the knight must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Kobold",size:"Small",type:"humanoid",subtype:"kobold",alignment:"lawful evil",ac:12,hp:5,hit_dice:"2d6 + -2",speed:"30 ft.",stats:[7,15,9,8,7,8],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 8",languages:"Common, Draconic",cr:"1/8",traits:[{name:"Sunlight Sensitivity",desc:"While in sunlight, the kobold has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0},{name:"Pack Tactics",desc:"The kobold has advantage on an attack roll against a creature if at least one of the kobold's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Dagger",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2},{name:"Sling",desc:"Ranged Weapon Attack: +4 to hit, range 30/120 ft., one target. Hit: 4 (1d4 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Kraken",size:"Gargantuan",type:"monstrosity",subtype:"titan",alignment:"chaotic evil",ac:18,hp:472,hit_dice:"27d20 + 188",speed:"20 ft., swim 60 ft.",stats:[30,11,25,22,18,20],saves:[{strength:17},{dexterity:7},{constitution:14},{intelligence:13},{wisdom:11}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"frightened, paralyzed",senses:"truesight 120 ft., passive Perception 14",languages:"understands Abyssal, Celestial, Infernal, and Primordial but can't speak, telepathy 120 ft.",cr:"23",traits:[{name:"Amphibious",desc:"The kraken can breathe air and water.",attack_bonus:0},{name:"Freedom of Movement",desc:"The kraken ignores difficult terrain, and magical effects can't reduce its speed or cause it to be restrained. It can spend 5 feet of movement to escape from nonmagical restraints or being grappled.",attack_bonus:0},{name:"Siege Monster",desc:"The kraken deals double damage to objects and structures.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The kraken makes three tentacle attacks, each of which it can replace with one use of Fling.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 23 (3d8 + 10) piercing damage. If the target is a Large or smaller creature grappled by the kraken, that creature is swallowed, and the grapple ends. While swallowed, the creature is blinded and restrained, it has total cover against attacks and other effects outside the kraken, and it takes 42 (12d6) acid damage at the start of each of the kraken's turns. If the kraken takes 50 damage or more on a single turn from a creature inside it, the kraken must succeed on a DC 25 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the kraken. If the kraken dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 15 feet of movement, exiting prone.",attack_bonus:7,damage_dice:"3d8",damage_bonus:10},{name:"Tentacle",desc:"Melee Weapon Attack: +7 to hit, reach 30 ft., one target. Hit: 20 (3d6 + 10) bludgeoning damage, and the target is grappled (escape DC 18). Until this grapple ends, the target is restrained. The kraken has ten tentacles, each of which can grapple one target.",attack_bonus:7,damage_dice:"3d6",damage_bonus:10},{name:"Fling",desc:"One Large or smaller object held or creature grappled by the kraken is thrown up to 60 feet in a random direction and knocked prone. If a thrown target strikes a solid surface, the target takes 3 (1d6) bludgeoning damage for every 10 feet it was thrown. If the target is thrown at another creature, that creature must succeed on a DC 18 Dexterity saving throw or take the same damage and be knocked prone.",attack_bonus:0},{name:"Lightning Storm",desc:"The kraken magically creates three bolts of lightning, each of which can strike a target the kraken can see within 120 feet of it. A target must make a DC 23 Dexterity saving throw, taking 22 (4d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"4d10"}],legendary_actions:[{name:"Tentacle Attack or Fling",desc:"The kraken makes one tentacle attack or uses its Fling.",attack_bonus:0},{name:"Lightning Storm (Costs 2 Actions)",desc:"The kraken uses Lightning Storm.",attack_bonus:0},{name:"Ink Cloud (Costs 3 Actions)",desc:"While underwater, the kraken expels an ink cloud in a 60-foot radius. The cloud spreads around corners, and that area is heavily obscured to creatures other than the kraken. Each creature other than the kraken that ends its turn there must succeed on a DC 23 Constitution saving throw, taking 16 (3d10) poison damage on a failed save, or half as much damage on a successful one. A strong current disperses the cloud, which otherwise disappears at the end of the kraken's next turn.",attack_bonus:0}]},{name:"Lamia",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:13,hp:97,hit_dice:"13d10 + 25",speed:"30 ft.",stats:[16,13,15,14,15,16],skillsaves:[{deception:7},{insight:4},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 12",languages:"Abyssal, Common",cr:"4",traits:[{name:"Innate Spellcasting",desc:"The lamia's innate spellcasting ability is Charisma (spell save DC 13). It can innately cast the following spells, requiring no material components. At will: disguise self (any humanoid form), major image 3/day each: charm person, mirror image, scrying, suggestion 1/day: geas",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The lamia makes two attacks: one with its claws and one with its dagger or Intoxicating Touch.",attack_bonus:0},{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 14 (2d10 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d10",damage_bonus:3},{name:"Dagger",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 5 (1d4 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3},{name:"Intoxicating Touch",desc:"Melee Spell Attack: +5 to hit, reach 5 ft., one creature. Hit: The target is magically cursed for 1 hour. Until the curse ends, the target has disadvantage on Wisdom saving throws and all ability checks.",attack_bonus:0}]},{name:"Lemure",size:"Medium",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:7,hp:13,hit_dice:"3d8 + -1",speed:"15 ft.",stats:[10,5,11,1,11,3],damage_vulnerabilities:"",damage_resistances:"cold",damage_immunities:"fire, poison",condition_immunities:"charmed, frightened, poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"understands infernal but can't speak",cr:"0",traits:[{name:"Devil's Sight",desc:"Magical darkness doesn't impede the lemure's darkvision.",attack_bonus:0},{name:"Hellish Rejuvenation",desc:"A lemure that dies in the Nine Hells comes back to life with all its hit points in 1d10 days unless it is killed by a good-aligned creature with a bless spell cast on that creature or its remains are sprinkled with holy water.",attack_bonus:0}],actions:[{name:"Fist",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 2 (1d4) bludgeoning damage",attack_bonus:3,damage_dice:"1d4"}]},{name:"Lich",size:"Medium",type:"undead",subtype:"",alignment:"any evil alignment",ac:17,hp:135,hit_dice:"18d8 + 54",speed:"30 ft.",stats:[11,16,16,20,14,16],saves:[{constitution:10},{intelligence:12},{wisdom:9}],skillsaves:[{arcana:18},{history:12},{insight:9},{perception:9}],damage_vulnerabilities:"",damage_resistances:"cold, lightning, necrotic",damage_immunities:"poison; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"charmed, exhaustion, frightened, paralyzed, poisoned",senses:"truesight 120 ft., passive Perception 19",languages:"Common plus up to five other languages",cr:"21",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the lich fails a saving throw, it can choose to succeed instead.",attack_bonus:0},{name:"Rejuvenation",desc:"If it has a phylactery, a destroyed lich gains a new body in 1d10 days, regaining all its hit points and becoming active again. The new body appears within 5 feet of the phylactery.",attack_bonus:0},{name:"Turn Resistance",desc:"The lich has advantage on saving throws against any effect that turns undead.",attack_bonus:0}],actions:[{name:"Paralyzing Touch",desc:"Melee Spell Attack: +12 to hit, reach 5 ft., one creature. Hit: 10 (3d6) cold damage. The target must succeed on a DC 18 Constitution saving throw or be paralyzed for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:12,damage_dice:"3d6"}],legendary_actions:[{name:"Cantrip",desc:"The lich casts a cantrip.",attack_bonus:0},{name:"Paralyzing Touch (Costs 2 Actions)",desc:"The lich uses its Paralyzing Touch.",attack_bonus:0},{name:"Frightening Gaze (Costs 2 Actions)",desc:"The lich fixes its gaze on one creature it can see within 10 feet of it. The target must succeed on a DC 18 Wisdom saving throw against this magic or become frightened for 1 minute. The frightened target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a target's saving throw is successful or the effect ends for it, the target is immune to the lich's gaze for the next 24 hours.",attack_bonus:0},{name:"Disrupt Life (Costs 3 Actions)",desc:"Each living creature within 20 feet of the lich must make a DC 18 Constitution saving throw against this magic, taking 21 (6d6) necrotic damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"6d6"}],spells:["The lich is an 18th-level spellcaster. Its spellcasting ability is Intelligence (spell save DC 20, +12 to hit with spell attacks). The lich has the following wizard spells prepared:",{"Cantrips (at will)":"mage hand, prestidigitation, ray of frost"},{"1st level (4 slots)":"detect magic, magic missile, shield, thunderwave"},{"2nd level (3 slots)":"detect thoughts, invisibility, Melf's acid arrow, mirror image"},{"3rd level (3 slots)":"animate dead, counterspell, dispel magic, fireball"},{"4th level (3 slots)":"blight, dimension door"},{"5th level (3 slots)":"cloudkill, scrying"},{"6th level (1 slot)":"disintegrate, globe of invulnerability"},{"7th level (1 slot)":"finger of death, plane shift"},{"8th level (1 slot)":"dominate monster, power word stun"},{"9th level (1 slot)":"power word kill"}]},{name:"Lion",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:26,hit_dice:"4d10 + 4",speed:"50 ft.",stats:[17,15,13,3,12,8],skillsaves:[{perception:3},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1",traits:[{name:"Keen Smell",desc:"The lion has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The lion has advantage on an attack roll against a creature if at least one of the lion's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0},{name:"Pounce",desc:"If the lion moves at least 20 ft. straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the lion can make one bite attack against it as a bonus action.",attack_bonus:0},{name:"Running Leap",desc:"With a 10-foot running start, the lion can long jump up to 25 ft..",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Claw",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3}]},{name:"Lizard",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:2,hit_dice:"1d4 + -1",speed:"20 ft., climb 20 ft.",stats:[2,11,10,1,8,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 9",languages:"",cr:"0",actions:[{name:"Bite",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:0,damage_bonus:1}]},{name:"Lizardfolk",size:"Medium",type:"humanoid",subtype:"lizardfolk",alignment:"neutral",ac:15,hp:22,hit_dice:"4d8 + 4",speed:"30 ft., swim 30 ft.",stats:[15,10,13,7,12,7],skillsaves:[{perception:3},{stealth:4},{survival:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"Draconic",cr:"1/2",traits:[{name:"Hold Breath",desc:"The lizardfolk can hold its breath for 15 minutes.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The lizardfolk makes two melee attacks, each one with a different weapon.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Heavy Club",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Spiked Shield",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Mage",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:12,hp:40,hit_dice:"9d8 + -1",speed:"30 ft.",stats:[9,14,11,17,12,11],saves:[{intelligence:6},{wisdom:4}],skillsaves:[{arcana:6},{history:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"any four languages",cr:"6",traits:[],actions:[{name:"Dagger",desc:"Melee or Ranged Weapon Attack: +5 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:2}],spells:["The mage is a 9th-level spellcaster. Its spellcasting ability is Intelligence (spell save DC 14, +6 to hit with spell attacks). The mage has the following wizard spells prepared:",{"Cantrips (at will)":"fire bolt, light, mage hand, prestidigitation"},{"1st level (4 slots)":"detect magic, mage armor, magic missile, shield"},{"2nd level (3 slots)":"misty step, suggestion"},{"3rd level (3 slots)":"counterspell, fireball, fly"},{"4th level (3 slots)":"greater invisibility, ice storm"},{"5th level (1 slot)":"cone of cold"}]},{name:"Magma Mephit",size:"Small",type:"elemental",subtype:"",alignment:"neutral evil",ac:11,hp:22,hit_dice:"5d6 + 4",speed:"30 ft., fly 30 ft.",stats:[8,12,12,7,10,10],skillsaves:[{stealth:3}],damage_vulnerabilities:"cold",damage_resistances:"",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"Ignan, Terran",cr:"1/2",traits:[{name:"Death Burst",desc:"When the mephit dies, it explodes in a burst of lava. Each creature within 5 ft. of it must make a DC 11 Dexterity saving throw, taking 7 (2d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"2d6"},{name:"False Appearance",desc:"While the mephit remains motionless, it is indistinguishable from an ordinary mound of magma.",attack_bonus:0},{name:"Innate Spellcasting (1/Day)",desc:"The mephit can innately cast heat metal (spell save DC 10), requiring no material components. Its innate spellcasting ability is Charisma.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft ., one creature. Hit: 3 (1d4 + 1) slashing damage plus 2 (1d4) fire damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Fire Breath (Recharge 6)",desc:"The mephit exhales a 15-foot cone of fire. Each creature in that area must make a DC 11 Dexterity saving throw, taking 7 (2d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0},{name:"Variant: Summon Mephits (1/Day)",desc:"The mephit has a 25 percent chance of summoning 1d4 mephits of its kind. A summoned mephit appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other mephits. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Magmin",size:"Small",type:"elemental",subtype:"",alignment:"chaotic neutral",ac:14,hp:9,hit_dice:"2d6 + 2",speed:"30 ft.",stats:[7,15,12,8,11,10],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"fire",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Ignan",cr:"1/2",traits:[{name:"Death Burst",desc:"When the magmin dies, it explodes in a burst of fire and magma. Each creature within 10 ft. of it must make a DC 11 Dexterity saving throw, taking 7 (2d6) fire damage on a failed save, or half as much damage on a successful one. Flammable objects that aren't being worn or carried in that area are ignited.",attack_bonus:0,damage_dice:"2d6"},{name:"Ignited Illumination",desc:"As a bonus action, the magmin can set itself ablaze or extinguish its flames. While ablaze, the magmin sheds bright light in a 10-foot radius and dim light for an additional 10 ft.",attack_bonus:0}],actions:[{name:"Touch",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d6) fire damage. If the target is a creature or a flammable object, it ignites. Until a target takes an action to douse the fire, the target takes 3 (1d6) fire damage at the end of each of its turns.",attack_bonus:4,damage_dice:"2d6"}]},{name:"Mammoth",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:126,hit_dice:"11d12 + 54",speed:"40 ft.",stats:[24,9,21,3,11,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"6",traits:[{name:"Trampling Charge",desc:"If the mammoth moves at least 20 ft. straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 18 Strength saving throw or be knocked prone. If the target is prone, the mammoth can make one stomp attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 25 (4d8 + 7) piercing damage.",attack_bonus:10,damage_dice:"4d8",damage_bonus:7},{name:"Stomp",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one prone creature. Hit: 29 (4d10 + 7) bludgeoning damage.",attack_bonus:10,damage_dice:"4d10",damage_bonus:7}]},{name:"Manticore",size:"Large",type:"monstrosity",subtype:"",alignment:"lawful evil",ac:14,hp:68,hit_dice:"8d10 + 24",speed:"30 ft., fly 50 ft.",stats:[17,16,17,7,12,8],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"",cr:"3",traits:[{name:"Tail Spike Regrowth",desc:"The manticore has twenty-four tail spikes. Used spikes regrow when the manticore finishes a long rest.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The manticore makes three attacks: one with its bite and two with its claws or three with its tail spikes.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Claw",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Tail Spike",desc:"Ranged Weapon Attack: +5 to hit, range 100/200 ft., one target. Hit: 7 (1d8 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3}]},{name:"Marilith",size:"Large",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:18,hp:189,hit_dice:"18d10 + 90",speed:"40 ft.",stats:[18,20,20,18,16,20],saves:[{strength:9},{constitution:10},{wisdom:8},{charisma:10}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"truesight 120 ft., passive Perception 13",languages:"Abyssal, telepathy 120 ft.",cr:"16",traits:[{name:"Magic Resistance",desc:"The marilith has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The marilith's weapon attacks are magical.",attack_bonus:0},{name:"Reactive",desc:"The marilith can take one reaction on every turn in combat.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The marilith can make seven attacks: six with its longswords and one with its tail.",attack_bonus:0},{name:"Longsword",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:9,damage_dice:"2d8",damage_bonus:4},{name:"Tail",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one creature. Hit: 15 (2d10 + 4) bludgeoning damage. If the target is Medium or smaller, it is grappled (escape DC 19). Until this grapple ends, the target is restrained, the marilith can automatically hit the target with its tail, and the marilith can't make tail attacks against other targets.",attack_bonus:9,damage_dice:"2d10",damage_bonus:4},{name:"Teleport",desc:"The marilith magically teleports, along with any equipment it is wearing or carrying, up to 120 feet to an unoccupied space it can see.",attack_bonus:0},{name:"Variant: Summon Demon (1/Day)",desc:"The demon chooses what to summon and attempts a magical summoning.\\nA marilith has a 50 percent chance of summoning 1d6 vrocks, 1d4 hezrous, 1d3 glabrezus, 1d2 nalfeshnees, or one marilith.\\nA summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}],reactions:[{name:"Parry",desc:"The marilith adds 5 to its AC against one melee attack that would hit it. To do so, the marilith must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Mastiff",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:5,hit_dice:"1d8",speed:"40 ft.",stats:[13,14,12,3,12,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/8",traits:[{name:"Keen Hearing and Smell",desc:"The mastiff has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) piercing damage. If the target is a creature, it must succeed on a DC 11 Strength saving throw or be knocked prone.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Medusa",size:"Medium",type:"monstrosity",subtype:"",alignment:"lawful evil",ac:15,hp:127,hit_dice:"17d8 + 50",speed:"30 ft.",stats:[10,15,16,12,13,15],skillsaves:[{deception:5},{insight:4},{perception:4},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Common",cr:"6",traits:[{name:"Petrifying Gaze",desc:"When a creature that can see the medusa's eyes starts its turn within 30 ft. of the medusa, the medusa can force it to make a DC 14 Constitution saving throw if the medusa isn't incapacitated and can see the creature. If the saving throw fails by 5 or more, the creature is instantly petrified. Otherwise, a creature that fails the save begins to turn to stone and is restrained. The restrained creature must repeat the saving throw at the end of its next turn, becoming petrified on a failure or ending the effect on a success. The petrification lasts until the creature is freed by the greater restoration spell or other magic.\\nUnless surprised, a creature can avert its eyes to avoid the saving throw at the start of its turn. If the creature does so, it can't see the medusa until the start of its next turn, when it can avert its eyes again. If the creature looks at the medusa in the meantime, it must immediately make the save.\\nIf the medusa sees itself reflected on a polished surface within 30 ft. of it and in an area of bright light, the medusa is, due to its curse, affected by its own gaze.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The medusa makes either three melee attacks \u2014 one with its snake hair and two with its shortsword \u2014 or two ranged attacks with its longbow.",attack_bonus:0},{name:"Snake Hair",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) piercing damage plus 14 (4d6) poison damage.",attack_bonus:5,damage_dice:"1d4",damage_bonus:2},{name:"Shortsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:2},{name:"Longbow",desc:"Ranged Weapon Attack: +5 to hit, range 150/600 ft., one target. Hit: 6 (1d8 + 2) piercing damage plus 7 (2d6) poison damage.",attack_bonus:5,damage_dice:"2d6"}]},{name:"Merfolk",size:"Medium",type:"humanoid",subtype:"merfolk",alignment:"neutral",ac:11,hp:11,hit_dice:"2d8 + 2",speed:"10 ft., swim 40 ft.",stats:[10,13,12,11,11,12],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"Aquan, Common",cr:"1/8",traits:[{name:"Amphibious",desc:"The merfolk can breathe air and water.",attack_bonus:0}],actions:[{name:"Spear",desc:"Melee or Ranged Weapon Attack: +2 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 3 (1d6) piercing damage, or 4 (1d8) piercing damage if used with two hands to make a melee attack.",attack_bonus:2,damage_dice:"1d6"}]},{name:"Merrow",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:13,hp:45,hit_dice:"6d10 + 12",speed:"10 ft., swim 40 ft.",stats:[18,10,15,8,10,9],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Abyssal, Aquan",cr:"2",traits:[{name:"Amphibious",desc:"The merrow can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The merrow makes two attacks: one with its bite and one with its claws or harpoon.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:6,damage_dice:"1d8",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (2d4 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d4",damage_bonus:4},{name:"Harpoon",desc:"Melee or Ranged Weapon Attack: +6 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 11 (2d6 + 4) piercing damage. If the target is a Huge or smaller creature, it must succeed on a Strength contest against the merrow or be pulled up to 20 feet toward the merrow.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Mimic",size:"Medium",type:"monstrosity",subtype:"shapechanger",alignment:"neutral",ac:12,hp:58,hit_dice:"9d8 + 17",speed:"15 ft.",stats:[17,12,15,5,13,8],skillsaves:[{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"prone",senses:"darkvision 60 ft., passive Perception 11",languages:"",cr:"2",traits:[{name:"Shapechanger",desc:"The mimic can use its action to polymorph into an object or back into its true, amorphous form. Its statistics are the same in each form. Any equipment it is wearing or carrying isn 't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Adhesive (Object Form Only)",desc:"The mimic adheres to anything that touches it. A Huge or smaller creature adhered to the mimic is also grappled by it (escape DC 13). Ability checks made to escape this grapple have disadvantage.",attack_bonus:0},{name:"False Appearance (Object Form Only)",desc:"While the mimic remains motionless, it is indistinguishable from an ordinary object.",attack_bonus:0},{name:"Grappler",desc:"The mimic has advantage on attack rolls against any creature grappled by it.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) bludgeoning damage. If the mimic is in object form, the target is subjected to its Adhesive trait.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) piercing damage plus 4 (1d8) acid damage.",attack_bonus:5,damage_dice:"1d8 + 1d8",damage_bonus:3}]},{name:"Minotaur",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:14,hp:76,hit_dice:"9d10 + 26",speed:"40 ft.",stats:[18,11,16,6,16,9],skillsaves:[{perception:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 17",languages:"Abyssal",cr:"3",traits:[{name:"Charge",desc:"If the minotaur moves at least 10 ft. straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) piercing damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be pushed up to 10 ft. away and knocked prone.",attack_bonus:0,damage_dice:"2d8"},{name:"Labyrinthine Recall",desc:"The minotaur can perfectly recall any path it has traveled.",attack_bonus:0},{name:"Reckless",desc:"At the start of its turn, the minotaur can gain advantage on all melee weapon attack rolls it makes during that turn, but attack rolls against it have advantage until the start of its next turn.",attack_bonus:0}],actions:[{name:"Greataxe",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 17 (2d12 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d12",damage_bonus:4},{name:"Gore",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) piercing damage.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4}]},{name:"Minotaur Skeleton",size:"Large",type:"undead",subtype:"",alignment:"lawful evil",ac:12,hp:67,hit_dice:"9d10 + 17",speed:"40 ft.",stats:[18,11,15,6,8,5],damage_vulnerabilities:"bludgeoning",damage_resistances:"",damage_immunities:"poison",condition_immunities:"exhaustion, poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"understands Abyssal but can't speak",cr:"2",traits:[{name:"Charge",desc:"If the skeleton moves at least 10 feet straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) piercing damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be pushed up to 10 feet away and knocked prone.",attack_bonus:0,damage_dice:"2d8"}],actions:[{name:"Greataxe",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 17 (2d12 + 4) slashing damage.",attack_bonus:6,damage_dice:"2d12",damage_bonus:4},{name:"Gore",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) piercing damage.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4}]},{name:"Mule",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:11,hit_dice:"2d8 + 2",speed:"40 ft.",stats:[14,10,13,2,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/8",traits:[{name:"Beast of Burden",desc:"The mule is considered to be a Large animal for the purpose of determining its carrying capacity.",attack_bonus:0},{name:"Sure-Footed",desc:"The mule has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.",attack_bonus:0}],actions:[{name:"Hooves",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Mummy",size:"Medium",type:"undead",subtype:"",alignment:"lawful evil",ac:11,hp:58,hit_dice:"9d8 + 17",speed:"20 ft.",stats:[16,8,15,6,10,12],saves:[{wisdom:2}],damage_vulnerabilities:"fire",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"necrotic, poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"the languages it knew in life",cr:"3",actions:[{name:"Multiattack",desc:"The mummy can use its Dreadful Glare and makes one attack with its rotting fist.",attack_bonus:0},{name:"Rotting Fist",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) bludgeoning damage plus 10 (3d6) necrotic damage. If the target is a creature, it must succeed on a DC 12 Constitution saving throw or be cursed with mummy rot. The cursed target can't regain hit points, and its hit point maximum decreases by 10 (3d6) for every 24 hours that elapse. If the curse reduces the target's hit point maximum to 0, the target dies, and its body turns to dust. The curse lasts until removed by the remove curse spell or other magic.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3},{name:"Dreadful Glare",desc:"The mummy targets one creature it can see within 60 ft. of it. If the target can see the mummy, it must succeed on a DC 11 Wisdom saving throw against this magic or become frightened until the end of the mummy's next turn. If the target fails the saving throw by 5 or more, it is also paralyzed for the same duration. A target that succeeds on the saving throw is immune to the Dreadful Glare of all mummies (but not mummy lords) for the next 24 hours.",attack_bonus:0}]},{name:"Mummy Lord",size:"Medium",type:"undead",subtype:"",alignment:"lawful evil",ac:17,hp:97,hit_dice:"13d8 + 38",speed:"20 ft.",stats:[18,10,17,11,18,16],saves:[{constitution:8},{intelligence:5},{wisdom:9},{charisma:8}],skillsaves:[{history:5},{religion:5}],damage_vulnerabilities:"bludgeoning",damage_resistances:"",damage_immunities:"necrotic, poison; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"charmed, exhaustion, frightened, paralyzed, poisoned",senses:"darkvision 60 ft., passive Perception 14",languages:"the languages it knew in life",cr:"15",traits:[{name:"Magic Resistance",desc:"The mummy lord has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Rejuvenation",desc:"A destroyed mummy lord gains a new body in 24 hours if its heart is intact, regaining all its hit points and becoming active again. The new body appears within 5 feet of the mummy lord's heart.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The mummy can use its Dreadful Glare and makes one attack with its rotting fist.",attack_bonus:0},{name:"Rotting Fist",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 14 (3d6 + 4) bludgeoning damage plus 21 (6d6) necrotic damage. If the target is a creature, it must succeed on a DC 16 Constitution saving throw or be cursed with mummy rot. The cursed target can't regain hit points, and its hit point maximum decreases by 10 (3d6) for every 24 hours that elapse. If the curse reduces the target's hit point maximum to 0, the target dies, and its body turns to dust. The curse lasts until removed by the remove curse spell or other magic.",attack_bonus:9,damage_dice:"3d6 + 6d6",damage_bonus:4},{name:"Dreadful Glare",desc:"The mummy lord targets one creature it can see within 60 feet of it. If the target can see the mummy lord, it must succeed on a DC 16 Wisdom saving throw against this magic or become frightened until the end of the mummy's next turn. If the target fails the saving throw by 5 or more, it is also paralyzed for the same duration. A target that succeeds on the saving throw is immune to the Dreadful Glare of all mummies and mummy lords for the next 24 hours.",attack_bonus:0}],legendary_actions:[{name:"Attack",desc:"The mummy lord makes one attack with its rotting fist or uses its Dreadful Glare.",attack_bonus:0},{name:"Blinding Dust",desc:"Blinding dust and sand swirls magically around the mummy lord. Each creature within 5 feet of the mummy lord must succeed on a DC 16 Constitution saving throw or be blinded until the end of the creature's next turn.",attack_bonus:0},{name:"Blasphemous Word (Costs 2 Actions)",desc:"The mummy lord utters a blasphemous word. Each non-undead creature within 10 feet of the mummy lord that can hear the magical utterance must succeed on a DC 16 Constitution saving throw or be stunned until the end of the mummy lord's next turn.",attack_bonus:0},{name:"Channel Negative Energy (Costs 2 Actions)",desc:"The mummy lord magically unleashes negative energy. Creatures within 60 feet of the mummy lord, including ones behind barriers and around corners, can't regain hit points until the end of the mummy lord's next turn.",attack_bonus:0},{name:"Whirlwind of Sand (Costs 2 Actions)",desc:"The mummy lord magically transforms into a whirlwind of sand, moves up to 60 feet, and reverts to its normal form. While in whirlwind form, the mummy lord is immune to all damage, and it can't be grappled, petrified, knocked prone, restrained, or stunned. Equipment worn or carried by the mummy lord remain in its possession.",attack_bonus:0}],spells:["The mummy lord is a 10th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 17, +9 to hit with spell attacks). The mummy lord has the following cleric spells prepared:",{"Cantrips (at will)":"sacred flame, thaumaturgy"},{"1st level (4 slots)":"command, guiding bolt, shield of faith"},{"2nd level (3 slots)":"hold person, silence, spiritual weapon"},{"3rd level (3 slots)":"animate dead, dispel magic"},{"4th level (3 slots)":"divination, guardian of faith"},{"5th level (2 slots)":"contagion, insect plague"},{"6th level (1 slot)":"harm"}]},{name:"Nalfeshnee",size:"Large",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:18,hp:184,hit_dice:"16d10 + 96",speed:"20 ft., fly 30 ft.",stats:[21,10,22,19,12,15],saves:[{constitution:11},{intelligence:9},{wisdom:6},{charisma:7}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"truesight 120 ft., passive Perception 11",languages:"Abyssal, telepathy 120 ft.",cr:"13",traits:[{name:"Magic Resistance",desc:"The nalfeshnee has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The nalfeshnee uses Horror Nimbus if it can. It then makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 32 (5d10 + 5) piercing damage.",attack_bonus:10,damage_dice:"5d10",damage_bonus:5},{name:"Claw",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 15 (3d6 + 5) slashing damage.",attack_bonus:10,damage_dice:"3d6",damage_bonus:5},{name:"Horror Nimbus (Recharge 5-6)",desc:"The nalfeshnee magically emits scintillating, multicolored light. Each creature within 15 feet of the nalfeshnee that can see the light must succeed on a DC 15 Wisdom saving throw or be frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the nalfeshnee's Horror Nimbus for the next 24 hours.",attack_bonus:0},{name:"Teleport",desc:"The nalfeshnee magically teleports, along with any equipment it is wearing or carrying, up to 120 feet to an unoccupied space it can see.",attack_bonus:0},{name:"Variant: Summon Demon (1/Day)",desc:"The demon chooses what to summon and attempts a magical summoning.\\nA nalfeshnee has a 50 percent chance of summoning 1d4 vrocks, 1d3 hezrous, 1d2 glabrezus, or one nalfeshnee.\\nA summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Night Hag",size:"Medium",type:"fiend",subtype:"",alignment:"neutral evil",ac:17,hp:112,hit_dice:"15d8 + 44",speed:"30 ft.",stats:[18,15,16,16,14,16],skillsaves:[{deception:7},{insight:6},{perception:6},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"cold, fire; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"",condition_immunities:"charmed",senses:"darkvision 120 ft., passive Perception 16",languages:"Abyssal, Common, Infernal, Primordial",cr:"5",traits:[{name:"Innate Spellcasting",desc:"The hag's innate spellcasting ability is Charisma (spell save DC 14, +6 to hit with spell attacks). She can innately cast the following spells, requiring no material components:\\n\\nAt will: detect magic, magic missile\\n2/day each: plane shift (self only), ray of enfeeblement, sleep",attack_bonus:0},{name:"Magic Resistance",desc:"The hag has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Night Hag Items",desc:"A night hag carries two very rare magic items that she must craft for herself If either object is lost, the night hag will go to great lengths to retrieve it, as creating a new tool takes time and effort.\\nHeartstone: This lustrous black gem allows a night hag to become ethereal while it is in her possession. The touch of a heartstone also cures any disease. Crafting a heartstone takes 30 days.\\nSoul Bag: When an evil humanoid dies as a result of a night hag's Nightmare Haunting, the hag catches the soul in this black sack made of stitched flesh. A soul bag can hold only one evil soul at a time, and only the night hag who crafted the bag can catch a soul with it. Crafting a soul bag takes 7 days and a humanoid sacrifice (whose flesh is used to make the bag).",attack_bonus:0},{name:"Hag Coven",desc:"When hags must work together, they form covens, in spite of their selfish natures. A coven is made up of hags of any type, all of whom are equals within the group. However, each of the hags continues to desire more personal power.\\nA coven consists of three hags so that any arguments between two hags can be settled by the third. If more than three hags ever come together, as might happen if two covens come into conflict, the result is usually chaos.",attack_bonus:0},{name:"Shared Spellcasting (Coven Only)",desc:"While all three members of a hag coven are within 30 feet of one another, they can each cast the following spells from the wizard's spell list but must share the spell slots among themselves:\\n\\n\u2022 1st level (4 slots): identify, ray of sickness\\n\u2022 2nd level (3 slots): hold person, locate object\\n\u2022 3rd level (3 slots): bestow curse, counterspell, lightning bolt\\n\u2022 4th level (3 slots): phantasmal killer, polymorph\\n\u2022 5th level (2 slots): contact other plane, scrying\\n\u2022 6th level (1 slot): eye bite\\n\\nFor casting these spells, each hag is a 12th-level spellcaster that uses Intelligence as her spellcasting ability. The spell save DC is 12+the hag's Intelligence modifier, and the spell attack bonus is 4+the hag's Intelligence modifier.",attack_bonus:0},{name:"Hag Eye (Coven Only)",desc:"A hag coven can craft a magic item called a hag eye, which is made from a real eye coated in varnish and often fitted to a pendant or other wearable item. The hag eye is usually entrusted to a minion for safekeeping and transport. A hag in the coven can take an action to see what the hag eye sees if the hag eye is on the same plane of existence. A hag eye has AC 10, 1 hit point, and darkvision with a radius of 60 feet. If it is destroyed, each coven member takes 3d10 psychic damage and is blinded for 24 hours.\\nA hag coven can have only one hag eye at a time, and creating a new one requires all three members of the coven to perform a ritual. The ritual takes 1 hour, and the hags can't perform it while blinded. During the ritual, if the hags take any action other than performing the ritual, they must start over.",attack_bonus:0}],actions:[{name:"Claws (Hag Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Change Shape",desc:"The hag magically polymorphs into a Small or Medium female humanoid, or back into her true form. Her statistics are the same in each form. Any equipment she is wearing or carrying isn't transformed. She reverts to her true form if she dies.",attack_bonus:0},{name:"Etherealness",desc:"The hag magically enters the Ethereal Plane from the Material Plane, or vice versa. To do so, the hag must have a heartstone in her possession.",attack_bonus:0},{name:"Nightmare Haunting (1/Day)",desc:"While on the Ethereal Plane, the hag magically touches a sleeping humanoid on the Material Plane. A protection from evil and good spell cast on the target prevents this contact, as does a magic circle. As long as the contact persists, the target has dreadful visions. If these visions last for at least 1 hour, the target gains no benefit from its rest, and its hit point maximum is reduced by 5 (1d10). If this effect reduces the target's hit point maximum to 0, the target dies, and if the target was evil, its soul is trapped in the hag's soul bag. The reduction to the target's hit point maximum lasts until removed by the greater restoration spell or similar magic.",attack_bonus:0}]},{name:"Nightmare",size:"Large",type:"fiend",subtype:"",alignment:"neutral evil",ac:13,hp:68,hit_dice:"8d10 + 24",speed:"60 ft., fly 90 ft.",stats:[18,15,16,10,13,15],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"passive Perception 11",languages:"understands Abyssal, Common, and Infernal but can't speak",cr:"3",traits:[{name:"Confer Fire Resistance",desc:"The nightmare can grant resistance to fire damage to anyone riding it.",attack_bonus:0},{name:"Illumination",desc:"The nightmare sheds bright light in a 10-foot radius and dim light for an additional 10 feet.",attack_bonus:0}],actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage plus 7 (2d6) fire damage.",attack_bonus:6,damage_dice:"2d8 + 2d6",damage_bonus:4},{name:"Ethereal Stride",desc:"The nightmare and up to three willing creatures within 5 feet of it magically enter the Ethereal Plane from the Material Plane, or vice versa.",attack_bonus:0}]},{name:"Noble",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:15,hp:9,hit_dice:"2d8",speed:"30 ft.",stats:[11,12,11,12,14,16],skillsaves:[{deception:5},{insight:4},{persuasion:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any two languages",cr:"1/8",actions:[{name:"Rapier",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1}],reactions:[{name:"Parry",desc:"The noble adds 2 to its AC against one melee attack that would hit it. To do so, the noble must see the attacker and be wielding a melee weapon.",attack_bonus:0}]},{name:"Ochre Jelly",size:"Large",type:"ooze",subtype:"",alignment:"unaligned",ac:8,hp:45,hit_dice:"6d10 + 12",speed:"10 ft., climb 10 ft.",stats:[15,6,14,2,6,1],damage_vulnerabilities:"",damage_resistances:"acid",damage_immunities:"lightning, slashing",condition_immunities:"blinded, charmed, deafened, exhaustion, frightened, prone",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 8",languages:"",cr:"2",traits:[{name:"Amorphous",desc:"The jelly can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Spider Climb",desc:"The jelly can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Pseudopod",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) bludgeoning damage plus 3 (1d6) acid damage.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2}],reactions:[{name:"Split",desc:"When a jelly that is Medium or larger is subjected to lightning or slashing damage, it splits into two new jellies if it has at least 10 hit points. Each new jelly has hit points equal to half the original jelly's, rounded down. New jellies are one size smaller than the original jelly.",attack_bonus:0}]},{name:"Octopus",size:"Small",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:3,hit_dice:"1d6 + -1",speed:"5 ft., swim 30 ft.",stats:[4,15,11,3,10,4],skillsaves:[{perception:2},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 12",languages:"",cr:"0",traits:[{name:"Hold Breath",desc:"While out of water, the octopus can hold its breath for 30 minutes.",attack_bonus:0},{name:"Underwater Camouflage",desc:"The octopus has advantage on Dexterity (Stealth) checks made while underwater.",attack_bonus:0},{name:"Water Breathing",desc:"The octopus can breathe only underwater.",attack_bonus:0}],actions:[{name:"Tentacles",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 1 bludgeoning damage, and the target is grappled (escape DC 10). Until this grapple ends, the octopus can't use its tentacles on another target.",attack_bonus:4,damage_bonus:1},{name:"Ink Cloud (Recharges after a Short or Long Rest)",desc:"A 5-foot-radius cloud of ink extends all around the octopus if it is underwater. The area is heavily obscured for 1 minute, although a significant current can disperse the ink. After releasing the ink, the octopus can use the Dash action as a bonus action.",attack_bonus:0}]},{name:"Ogre",size:"Large",type:"giant",subtype:"",alignment:"chaotic evil",ac:11,hp:59,hit_dice:"7d10 + 20",speed:"40 ft.",stats:[19,8,16,5,7,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 8",languages:"Common, Giant",cr:"2",actions:[{name:"Greatclub",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +6 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 11 (2d6 + 4) piercing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Ogre Zombie",size:"Large",type:"undead",subtype:"",alignment:"neutral evil",ac:8,hp:85,hit_dice:"9d10 + 35",speed:"30 ft.",stats:[19,6,18,3,6,5],saves:[{wisdom:0}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 8",languages:"understands Common and Giant but can't speak",cr:"2",traits:[{name:"Undead Fortitude",desc:"If damage reduces the zombie to 0 hit points, it must make a Constitution saving throw with a DC of 5+the damage taken, unless the damage is radiant or from a critical hit. On a success, the zombie drops to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Morningstar",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d8",damage_bonus:4}]},{name:"Oni",size:"Large",type:"giant",subtype:"",alignment:"lawful evil",ac:16,hp:110,hit_dice:"13d10 + 38",speed:"30 ft., fly 30 ft.",stats:[19,11,16,14,12,15],saves:[{dexterity:3},{constitution:6},{wisdom:4},{charisma:5}],skillsaves:[{arcana:5},{deception:8},{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Common, Giant",cr:"7",traits:[{name:"Innate Spellcasting",desc:"The oni's innate spellcasting ability is Charisma (spell save DC 13). The oni can innately cast the following spells, requiring no material components:\\n\\nAt will: darkness, invisibility\\n1/day each: charm person, cone of cold, gaseous form, sleep",attack_bonus:0},{name:"Magic Weapons",desc:"The oni's weapon attacks are magical.",attack_bonus:0},{name:"Regeneration",desc:"The oni regains 10 hit points at the start of its turn if it has at least 1 hit point.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The oni makes two attacks, either with its claws or its glaive.",attack_bonus:0},{name:"Claw (Oni Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 8 (1d8 + 4) slashing damage.",attack_bonus:7,damage_dice:"1d8",damage_bonus:4},{name:"Glaive",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) slashing damage, or 9 (1d10 + 4) slashing damage in Small or Medium form.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Change Shape",desc:"The oni magically polymorphs into a Small or Medium humanoid, into a Large giant, or back into its true form. Other than its size, its statistics are the same in each form. The only equipment that is transformed is its glaive, which shrinks so that it can be wielded in humanoid form. If the oni dies, it reverts to its true form, and its glaive reverts to its normal size.",attack_bonus:0}]},{name:"Orc",size:"Medium",type:"humanoid",subtype:"orc",alignment:"chaotic evil",ac:13,hp:15,hit_dice:"2d8 + 6",speed:"30 ft.",stats:[16,12,16,7,11,10],skillsaves:[{intimidation:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Common, Orc",cr:"1/2",traits:[{name:"Aggressive",desc:"As a bonus action, the orc can move up to its speed toward a hostile creature that it can see.",attack_bonus:0}],actions:[{name:"Greataxe",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 9 (1d12 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d12",damage_bonus:3},{name:"Javelin",desc:"Melee or Ranged Weapon Attack: +5 to hit, reach 5 ft. or range 30/120 ft., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3}]},{name:"Otyugh",size:"Large",type:"aberration",subtype:"",alignment:"neutral",ac:14,hp:114,hit_dice:"12d10 + 48",speed:"30 ft.",stats:[16,11,19,6,13,6],saves:[{constitution:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 11",languages:"Otyugh",cr:"5",traits:[{name:"Limited Telepathy",desc:"The otyugh can magically transmit simple messages and images to any creature within 120 ft. of it that can understand a language. This form of telepathy doesn't allow the receiving creature to telepathically respond.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The otyugh makes three attacks: one with its bite and two with its tentacles.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 12 (2d8 + 3) piercing damage. If the target is a creature, it must succeed on a DC 15 Constitution saving throw against disease or become poisoned until the disease is cured. Every 24 hours that elapse, the target must repeat the saving throw, reducing its hit point maximum by 5 (1d10) on a failure. The disease is cured on a success. The target dies if the disease reduces its hit point maximum to 0. This reduction to the target's hit point maximum lasts until the disease is cured.",attack_bonus:6,damage_dice:"2d8",damage_bonus:3},{name:"Tentacle",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 7 (1d8 + 3) bludgeoning damage plus 4 (1d8) piercing damage. If the target is Medium or smaller, it is grappled (escape DC 13) and restrained until the grapple ends. The otyugh has two tentacles, each of which can grapple one target.",attack_bonus:6,damage_dice:"1d8",damage_bonus:3},{name:"Tentacle Slam",desc:"The otyugh slams creatures grappled by it into each other or a solid surface. Each creature must succeed on a DC 14 Constitution saving throw or take 10 (2d6 + 3) bludgeoning damage and be stunned until the end of the otyugh's next turn. On a successful save, the target takes half the bludgeoning damage and isn't stunned.",attack_bonus:0}]},{name:"Owl",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:1,hit_dice:"1d4 + -2",speed:"5 ft., fly 60 ft.",stats:[3,13,8,2,12,7],skillsaves:[{perception:3},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 13",languages:"",cr:"0",traits:[{name:"Flyby",desc:"The owl doesn't provoke opportunity attacks when it flies out of an enemy's reach.",attack_bonus:0},{name:"Keen Hearing and Sight",desc:"The owl has advantage on Wisdom (Perception) checks that rely on hearing or sight.",attack_bonus:0}],actions:[{name:"Talons",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 1 slashing damage.",attack_bonus:3,damage_bonus:1}]},{name:"Owlbear",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:13,hp:59,hit_dice:"7d10 + 20",speed:"40 ft.",stats:[20,12,17,3,12,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"3",traits:[{name:"Keen Sight and Smell",desc:"The owlbear has advantage on Wisdom (Perception) checks that rely on sight or smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The owlbear makes two attacks: one with its beak and one with its claws.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one creature. Hit: 10 (1d10 + 5) piercing damage.",attack_bonus:7,damage_dice:"1d10",damage_bonus:5},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 14 (2d8 + 5) slashing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:5}]},{name:"Panther",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:13,hit_dice:"3d8 + -1",speed:"50 ft., climb 40 ft.",stats:[14,15,10,3,14,7],skillsaves:[{perception:4},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"1/4",traits:[{name:"Keen Smell",desc:"The panther has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Pounce",desc:"If the panther moves at least 20 ft. straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the panther can make one bite attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Claw",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) slashing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Pegasus",size:"Large",type:"celestial",subtype:"",alignment:"chaotic good",ac:12,hp:59,hit_dice:"7d10 + 20",speed:"60 ft., fly 90 ft.",stats:[18,15,16,10,15,13],saves:[{dexterity:4},{wisdom:4},{charisma:3}],skillsaves:[{perception:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 16",languages:"understands Celestial, Common, Elvish, and Sylvan but can't speak",cr:"2",actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Phase Spider",size:"Large",type:"monstrosity",subtype:"",alignment:"unaligned",ac:13,hp:32,hit_dice:"5d10 + 4",speed:"30 ft., climb 30 ft.",stats:[15,15,12,6,10,6],skillsaves:[{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"",cr:"3",traits:[{name:"Ethereal Jaunt",desc:"As a bonus action, the spider can magically shift from the Material Plane to the Ethereal Plane, or vice versa.",attack_bonus:0},{name:"Spider Climb",desc:"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Walker",desc:"The spider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 7 (1d10 + 2) piercing damage, and the target must make a DC 11 Constitution saving throw, taking 18 (4d8) poison damage on a failed save, or half as much damage on a successful one. If the poison damage reduces the target to 0 hit points, the target is stable but poisoned for 1 hour, even after regaining hit points, and is paralyzed while poisoned in this way.",attack_bonus:4,damage_dice:"1d10",damage_bonus:2}]},{name:"Pit Fiend",size:"Large",type:"fiend",subtype:"devil",alignment:"lawful evil",ac:19,hp:300,hit_dice:"24d10 + 168",speed:"30 ft., fly 60 ft.",stats:[26,14,24,22,18,24],saves:[{dexterity:8},{constitution:13},{wisdom:10}],damage_vulnerabilities:"",damage_resistances:"cold; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"truesight 120 ft., passive Perception 14",languages:"Infernal, telepathy 120 ft.",cr:"20",traits:[{name:"Fear Aura",desc:"Any creature hostile to the pit fiend that starts its turn within 20 feet of the pit fiend must make a DC 21 Wisdom saving throw, unless the pit fiend is incapacitated. On a failed save, the creature is frightened until the start of its next turn. If a creature's saving throw is successful, the creature is immune to the pit fiend's Fear Aura for the next 24 hours.",attack_bonus:0},{name:"Magic Resistance",desc:"The pit fiend has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The pit fiend's weapon attacks are magical.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The pit fiend's spellcasting ability is Charisma (spell save DC 21). The pit fiend can innately cast the following spells, requiring no material components:\\nAt will: detect magic, fireball\\n3/day each: hold monster, wall of fire",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The pit fiend makes four attacks: one with its bite, one with its claw, one with its mace, and one with its tail.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +14 to hit, reach 5 ft., one target. Hit: 22 (4d6 + 8) piercing damage. The target must succeed on a DC 21 Constitution saving throw or become poisoned. While poisoned in this way, the target can't regain hit points, and it takes 21 (6d6) poison damage at the start of each of its turns. The poisoned target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:14,damage_dice:"4d6",damage_bonus:8},{name:"Claw",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft. , one target. Hit: 17 (2d8 + 8) slashing damage.",attack_bonus:14,damage_dice:"2d8",damage_bonus:8},{name:"Mace",desc:"Melee Weapon Attack: +14 to hit, reach 10ft., one target. Hit: 15 (2d6 + 8) bludgeoning damage plus 21 (6d6) fire damage.",attack_bonus:14,damage_dice:"2d6",damage_bonus:8},{name:"Tail",desc:"Melee Weapon Attack: +14 to hit, reach 10ft., one target. Hit: 24 (3d1O + 8) bludgeoning damage.",attack_bonus:14,damage_dice:"3d10",damage_bonus:8}]},{name:"Planetar",size:"Large",type:"celestial",subtype:"",alignment:"lawful good",ac:19,hp:200,hit_dice:"16d10 + 112",speed:"40 ft., fly 120 ft.",stats:[24,20,24,19,22,25],saves:[{constitution:12},{wisdom:11},{charisma:12}],skillsaves:[{perception:11}],damage_vulnerabilities:"",damage_resistances:"radiant; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"charmed, exhaustion, frightened",senses:"truesight 120 ft., passive Perception 21",languages:"all, telepathy 120 ft.",cr:"16",traits:[{name:"Angelic Weapons",desc:"The planetar's weapon attacks are magical. When the planetar hits with any weapon, the weapon deals an extra 5d8 radiant damage (included in the attack).",attack_bonus:0},{name:"Divine Awareness",desc:"The planetar knows if it hears a lie.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The planetar's spellcasting ability is Charisma (spell save DC 20). The planetar can innately cast the following spells, requiring no material components:\\nAt will: detect evil and good, invisibility (self only)\\n3/day each: blade barrier, dispel evil and good, flame strike, raise dead\\n1/day each: commune, control weather, insect plague",attack_bonus:0},{name:"Magic Resistance",desc:"The planetar has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The planetar makes two melee attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +12 to hit, reach 5 ft., one target. Hit: 21 (4d6 + 7) slashing damage plus 22 (5d8) radiant damage.",attack_bonus:12,damage_dice:"4d6 + 5d8",damage_bonus:7},{name:"Healing Touch (4/Day)",desc:"The planetar touches another creature. The target magically regains 30 (6d8 + 3) hit points and is freed from any curse, disease, poison, blindness, or deafness.",attack_bonus:0}]},{name:"Plesiosaurus",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:68,hit_dice:"8d10 + 24",speed:"20 ft., swim 40 ft.",stats:[18,15,16,2,12,5],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"2",traits:[{name:"Hold Breath",desc:"The plesiosaurus can hold its breath for 1 hour.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 10 ft., one target. Hit: 14 (3d6 + 4) piercing damage.",attack_bonus:6,damage_dice:"3d6",damage_bonus:4}]},{name:"Poisonous Snake",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:2,hit_dice:"1d4 + -1",speed:"30 ft., swim 30 ft.",stats:[2,16,11,1,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 10",languages:"",cr:"1/8",actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 1 piercing damage, and the target must make a DC 10 Constitution saving throw, taking 5 (2d4) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:5,damage_bonus:1}]},{name:"Polar Bear",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:42,hit_dice:"5d10 + 14",speed:"40 ft., swim 30 ft.",stats:[20,10,16,2,13,7],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"2",traits:[{name:"Keen Smell",desc:"The bear has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The bear makes two attacks: one with its bite and one with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 9 (1d8 + 5) piercing damage.",attack_bonus:7,damage_dice:"1d8",damage_bonus:5},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:5}]},{name:"Pony",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:11,hit_dice:"2d8 + 2",speed:"40 ft.",stats:[15,10,13,2,11,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/8",actions:[{name:"Hooves",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2}]},{name:"Priest",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:13,hp:27,hit_dice:"5d8 + 4",speed:"25 ft.",stats:[10,10,12,13,16,13],skillsaves:[{medicine:7},{persuasion:3},{religion:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"any two languages",cr:"2",traits:[{name:"Divine Eminence",desc:"As a bonus action, the priest can expend a spell slot to cause its melee weapon attacks to magically deal an extra 10 (3d6) radiant damage to a target on a hit. This benefit lasts until the end of the turn. If the priest expends a spell slot of 2nd level or higher, the extra damage increases by 1d6 for each level above 1st.",attack_bonus:0,damage_dice:"3d6"}],actions:[{name:"Mace",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 3 (1d6) bludgeoning damage.",attack_bonus:2,damage_dice:"1d6"}],spells:["The priest is a 5th-level spellcaster. Its spellcasting ability is Wisdom (spell save DC 13, +5 to hit with spell attacks). The priest has the following cleric spells prepared:",{"Cantrips (at will)":"light, sacred flame, thaumaturgy"},{"1st level (4 slots)":"cure wounds, guiding bolt, sanctuary"},{"2nd level (3 slots)":"lesser restoration, spiritual weapon"},{"3rd level (2 slots)":"dispel magic, spirit guardians"}]},{name:"Pseudodragon",size:"Tiny",type:"dragon",subtype:"",alignment:"neutral good",ac:13,hp:7,hit_dice:"2d4 + 2",speed:"15 ft., fly 60 ft.",stats:[6,15,13,10,12,10],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 13",languages:"understands Common and Draconic but can't speak",cr:"1/4",traits:[{name:"Keen Senses",desc:"The pseudodragon has advantage on Wisdom (Perception) checks that rely on sight, hearing, or smell.",attack_bonus:0},{name:"Magic Resistance",desc:"The pseudodragon has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Limited Telepathy",desc:"The pseudodragon can magically communicate simple ideas, emotions, and images telepathically with any creature within 100 ft. of it that can understand a language.",attack_bonus:0},{name:"Variant: Familiar",desc:"The pseudodragon can serve another creature as a familiar, forming a magic, telepathic bond with that willing companion. While the two are bonded, the companion can sense what the pseudodragon senses as long as they are within 1 mile of each other. While the pseudodragon is within 10 feet of its companion, the companion shares the pseudodragon's Magic Resistance trait. At any time and for any reason, the pseudodragon can end its service as a familiar, ending the telepathic bond.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2},{name:"Sting",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 4 (1d4 + 2) piercing damage, and the target must succeed on a DC 11 Constitution saving throw or become poisoned for 1 hour. If the saving throw fails by 5 or more, the target falls unconscious for the same duration, or until it takes damage or another creature uses an action to shake it awake.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2}]},{name:"Purple Worm",size:"Gargantuan",type:"monstrosity",subtype:"",alignment:"unaligned",ac:18,hp:247,hit_dice:"15d20 + 89",speed:"50 ft., burrow 30 ft.",stats:[28,7,22,1,8,4],saves:[{constitution:11},{wisdom:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., tremorsense 60 ft., passive Perception 9",languages:"",cr:"15",traits:[{name:"Tunneler",desc:"The worm can burrow through solid rock at half its burrow speed and leaves a 10-foot-diameter tunnel in its wake.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The worm makes two attacks: one with its bite and one with its stinger.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 22 (3d8 + 9) piercing damage. If the target is a Large or smaller creature, it must succeed on a DC 19 Dexterity saving throw or be swallowed by the worm. A swallowed creature is blinded and restrained, it has total cover against attacks and other effects outside the worm, and it takes 21 (6d6) acid damage at the start of each of the worm's turns.\\nIf the worm takes 30 damage or more on a single turn from a creature inside it, the worm must succeed on a DC 21 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the worm. If the worm dies, a swallowed creature is no longer restrained by it and can escape from the corpse by using 20 feet of movement, exiting prone.",attack_bonus:9,damage_dice:"3d8",damage_bonus:9},{name:"Tail Stinger",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one creature. Hit: 19 (3d6 + 9) piercing damage, and the target must make a DC 19 Constitution saving throw, taking 42 (12d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:9,damage_dice:"3d6",damage_bonus:9}]},{name:"Quasit",size:"Tiny",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:13,hp:7,hit_dice:"3d4 + -1",speed:"40 ft.",stats:[5,17,10,7,10,10],skillsaves:[{stealth:5}],damage_vulnerabilities:"",damage_resistances:"cold; fire; lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"Abyssal, Common",cr:"1",traits:[{name:"Shapechanger",desc:"The quasit can use its action to polymorph into a beast form that resembles a bat (speed 10 ft. fly 40 ft.), a centipede (40 ft., climb 40 ft.), or a toad (40 ft., swim 40 ft.), or back into its true form . Its statistics are the same in each form, except for the speed changes noted. Any equipment it is wearing or carrying isn't transformed . It reverts to its true form if it dies.",attack_bonus:0},{name:"Magic Resistance",desc:"The quasit has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Variant: Familiar",desc:"The quasit can serve another creature as a familiar, forming a telepathic bond with its willing master. While the two are bonded, the master can sense what the quasit senses as long as they are within 1 mile of each other. While the quasit is within 10 feet of its master, the master shares the quasit's Magic Resistance trait. At any time and for any reason, the quasit can end its service as a familiar, ending the telepathic bond.",attack_bonus:0}],actions:[{name:"Claw (Bite in Beast Form)",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft ., one target. Hit: 5 (1d4 + 3) piercing damage, and the target must succeed on a DC 10 Constitution saving throw or take 5 (2d4) poison damage and become poisoned for 1 minute. The target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:4,damage_dice:"1d4",damage_bonus:3},{name:"Scare (1/day)",desc:"One creature of the quasit's choice within 20 ft. of it must succeed on a DC 10 Wisdom saving throw or be frightened for 1 minute. The target can repeat the saving throw at the end of each of its turns, with disadvantage if the quasit is within line of sight, ending the effect on itself on a success.",attack_bonus:0},{name:"Invisibility",desc:"The quasit magically turns invisible until it attacks or uses Scare, or until its concentration ends (as if concentrating on a spell). Any equipment the quasit wears or carries is invisible with it.",attack_bonus:0}]},{name:"Quipper",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:1,hit_dice:"1d4 + -2",speed:"swim 40 ft.",stats:[2,16,9,1,7,2],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 8",languages:"",cr:"0",traits:[{name:"Blood Frenzy",desc:"The quipper has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Water Breathing",desc:"The quipper can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:5,damage_bonus:1}]},{name:"Rakshasa",size:"Medium",type:"fiend",subtype:"",alignment:"lawful evil",ac:16,hp:110,hit_dice:"13d8 + 51",speed:"40 ft.",stats:[14,17,18,13,16,20],skillsaves:[{deception:10},{insight:8}],damage_vulnerabilities:"piercing from magic weapons wielded by good creatures",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"Common, Infernal",cr:"13",traits:[{name:"Limited Magic Immunity",desc:"The rakshasa can't be affected or detected by spells of 6th level or lower unless it wishes to be. It has advantage on saving throws against all other spells and magical effects.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The rakshasa's innate spellcasting ability is Charisma (spell save DC 18, +10 to hit with spell attacks). The rakshasa can innately cast the following spells, requiring no material components:\\n\\nAt will: detect thoughts, disguise self, mage hand, minor illusion\\n3/day each: charm person, detect magic, invisibility, major image, suggestion\\n1/day each: dominate person, fly, plane shift, true seeing",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The rakshasa makes two claw attacks",attack_bonus:0},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 9 (2d6 + 2) slashing damage, and the target is cursed if it is a creature. The magical curse takes effect whenever the target takes a short or long rest, filling the target's thoughts with horrible images and dreams. The cursed target gains no benefit from finishing a short or long rest. The curse lasts until it is lifted by a remove curse spell or similar magic.",attack_bonus:7,damage_dice:"2d6",damage_bonus:2}]},{name:"Rat",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:1,hit_dice:"1d4 + -2",speed:"20 ft.",stats:[2,11,9,2,10,4],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 10",languages:"",cr:"0",traits:[{name:"Keen Smell",desc:"The rat has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +0 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:0,damage_bonus:1}]},{name:"Raven",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:1,hit_dice:"1d4 + -2",speed:"10 ft., fly 50 ft.",stats:[2,14,8,2,12,6],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",traits:[{name:"Mimicry",desc:"The raven can mimic simple sounds it has heard, such as a person whispering, a baby crying, or an animal chittering. A creature that hears the sounds can tell they are imitations with a successful DC 10 Wisdom (Insight) check.",attack_bonus:0}],actions:[{name:"Beak",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 1 piercing damage.",attack_bonus:0}]},{name:"Red Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic evil",ac:17,hp:75,hit_dice:"10d8 + 30",speed:"30 ft., climb 30 ft., fly 60 ft.",stats:[19,10,17,12,11,15],saves:[{dexterity:2},{constitution:5},{wisdom:2},{charisma:4}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"4",actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (1d10 + 4) piercing damage plus 3 (1d6) fire damage.",attack_bonus:6,damage_dice:"1d10 + 1d6",damage_bonus:4},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon exhales fire in a 15-foot cone. Each creature in that area must make a DC 13 Dexterity saving throw, taking 24 (7d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"7d6"}]},{name:"Reef Shark",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"4d8 + 4",speed:"swim 40 ft.",stats:[14,13,13,1,10,4],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 30 ft., passive Perception 12",languages:"",cr:"1/2",traits:[{name:"Pack Tactics",desc:"The shark has advantage on an attack roll against a creature if at least one of the shark's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0},{name:"Water Breathing",desc:"The shark can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Remorhaz",size:"Huge",type:"monstrosity",subtype:"",alignment:"unaligned",ac:17,hp:195,hit_dice:"17d12 + 84",speed:"30 ft., burrow 20 ft.",stats:[24,13,21,4,10,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold, fire",condition_immunities:"",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 10",languages:"",cr:"11",traits:[{name:"Heated Body",desc:"A creature that touches the remorhaz or hits it with a melee attack while within 5 feet of it takes 10 (3d6) fire damage.",attack_bonus:0,damage_dice:"3d6"}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 40 (6d10 + 7) piercing damage plus 10 (3d6) fire damage. If the target is a creature, it is grappled (escape DC 17). Until this grapple ends, the target is restrained, and the remorhaz can't bite another target.",attack_bonus:11,damage_dice:"6d10 + 3d6",damage_bonus:7},{name:"Swallow",desc:"The remorhaz makes one bite attack against a Medium or smaller creature it is grappling. If the attack hits, that creature takes the bite's damage and is swallowed, and the grapple ends. While swallowed, the creature is blinded and restrained, it has total cover against attacks and other effects outside the remorhaz, and it takes 21 (6d6) acid damage at the start of each of the remorhaz's turns.\\nIf the remorhaz takes 30 damage or more on a single turn from a creature inside it, the remorhaz must succeed on a DC 15 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet oft he remorhaz. If the remorhaz dies, a swallowed creature is no longer restrained by it and can escape from the corpse using 15 feet of movement, exiting prone.",attack_bonus:0}]},{name:"Rhinoceros",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:45,hit_dice:"6d10 + 12",speed:"40 ft.",stats:[21,8,15,2,12,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"",cr:"2",traits:[{name:"Charge",desc:"If the rhinoceros moves at least 20 ft. straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 9 (2d8) bludgeoning damage. If the target is a creature, it must succeed on a DC 15 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d8"}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 14 (2d8 + 5) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:5}]},{name:"Riding Horse",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:13,hit_dice:"2d10 + 2",speed:"60 ft.",stats:[16,10,12,2,11,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"1/4",actions:[{name:"Hooves",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (2d4 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"2d4",damage_bonus:3}]},{name:"Roc",size:"Gargantuan",type:"monstrosity",subtype:"",alignment:"unaligned",ac:15,hp:248,hit_dice:"16d20 + 80",speed:"20 ft., fly 120 ft.",stats:[28,10,20,3,10,9],saves:[{dexterity:4},{constitution:9},{wisdom:4},{charisma:3}],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"11",traits:[{name:"Keen Sight",desc:"The roc has advantage on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The roc makes two attacks: one with its beak and one with its talons.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +13 to hit, reach 10 ft., one target. Hit: 27 (4d8 + 9) piercing damage.",attack_bonus:13,damage_dice:"4d8",damage_bonus:9},{name:"Talons",desc:"Melee Weapon Attack: +13 to hit, reach 5 ft., one target. Hit: 23 (4d6 + 9) slashing damage, and the target is grappled (escape DC 19). Until this grapple ends, the target is restrained, and the roc can't use its talons on another target.",attack_bonus:13,damage_dice:"4d6",damage_bonus:9}]},{name:"Roper",size:"Large",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:20,hp:93,hit_dice:"11d10 + 32",speed:"10 ft., climb 10 ft.",stats:[18,8,17,7,16,6],skillsaves:[{perception:6},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 16",languages:"",cr:"5",traits:[{name:"False Appearance",desc:"While the roper remains motionless, it is indistinguishable from a normal cave formation, such as a stalagmite.",attack_bonus:0},{name:"Grasping Tendrils",desc:"The roper can have up to six tendrils at a time. Each tendril can be attacked (AC 20; 10 hit points; immunity to poison and psychic damage). Destroying a tendril deals no damage to the roper, which can extrude a replacement tendril on its next turn. A tendril can also be broken if a creature takes an action and succeeds on a DC 15 Strength check against it.",attack_bonus:0},{name:"Spider Climb",desc:"The roper can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The roper makes four attacks with its tendrils, uses Reel, and makes one attack with its bite.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 22 (4d8 + 4) piercing damage.",attack_bonus:7,damage_dice:"4d8",damage_bonus:4},{name:"Tendril",desc:"Melee Weapon Attack: +7 to hit, reach 50 ft., one creature. Hit: The target is grappled (escape DC 15). Until the grapple ends, the target is restrained and has disadvantage on Strength checks and Strength saving throws, and the roper can't use the same tendril on another target.",attack_bonus:7},{name:"Reel",desc:"The roper pulls each creature grappled by it up to 25 ft. straight toward it.",attack_bonus:0}]},{name:"Rug of Smothering",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:12,hp:33,hit_dice:"6d10",speed:"10 ft.",stats:[17,14,10,1,3,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison, psychic",condition_immunities:"blinded, charmed, deafened, frightened, paralyzed, petrified, poisoned",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 6",languages:"",cr:"2",traits:[{name:"Antimagic Susceptibility",desc:"The rug is incapacitated while in the area of an antimagic field. If targeted by dispel magic, the rug must succeed on a Constitution saving throw against the caster's spell save DC or fall unconscious for 1 minute.",attack_bonus:0},{name:"Damage Transfer",desc:"While it is grappling a creature, the rug takes only half the damage dealt to it, and the creature grappled by the rug takes the other half.",attack_bonus:0},{name:"False Appearance",desc:"While the rug remains motionless, it is indistinguishable from a normal rug.",attack_bonus:0}],actions:[{name:"Smother",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one Medium or smaller creature. Hit: The creature is grappled (escape DC 13). Until this grapple ends, the target is restrained, blinded, and at risk of suffocating, and the rug can't smother another target. In addition, at the start of each of the target's turns, the target takes 10 (2d6 + 3) bludgeoning damage.",attack_bonus:0,damage_dice:"2d6",damage_bonus:3}]},{name:"Rust Monster",size:"Medium",type:"monstrosity",subtype:"",alignment:"unaligned",ac:14,hp:27,hit_dice:"5d8 + 4",speed:"40 ft.",stats:[13,12,13,2,13,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"",cr:"1/2",traits:[{name:"Iron Scent",desc:"The rust monster can pinpoint, by scent, the location of ferrous metal within 30 feet of it.",attack_bonus:0},{name:"Rust Metal",desc:"Any nonmagical weapon made of metal that hits the rust monster corrodes. After dealing damage, the weapon takes a permanent and cumulative -1 penalty to damage rolls. If its penalty drops to -5, the weapon is destroyed. Non magical ammunition made of metal that hits the rust monster is destroyed after dealing damage.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 5 (1d8 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d8",damage_bonus:1},{name:"Antennae",desc:"The rust monster corrodes a nonmagical ferrous metal object it can see within 5 feet of it. If the object isn't being worn or carried, the touch destroys a 1-foot cube of it. If the object is being worn or carried by a creature, the creature can make a DC 11 Dexterity saving throw to avoid the rust monster's touch.\\nIf the object touched is either metal armor or a metal shield being worn or carried, its takes a permanent and cumulative -1 penalty to the AC it offers. Armor reduced to an AC of 10 or a shield that drops to a +0 bonus is destroyed. If the object touched is a held metal weapon, it rusts as described in the Rust Metal trait.",attack_bonus:0}]},{name:"Saber-Toothed Tiger",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:52,hit_dice:"7d10 + 13",speed:"40 ft.",stats:[18,14,15,3,12,8],skillsaves:[{perception:3},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"2",traits:[{name:"Keen Smell",desc:"The tiger has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Pounce",desc:"If the tiger moves at least 20 ft. straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the tiger can make one bite attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (1d10 + 5) piercing damage.",attack_bonus:6,damage_dice:"1d10",damage_bonus:5},{name:"Claw",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:5}]},{name:"Sahuagin",size:"Medium",type:"humanoid",subtype:"sahuagin",alignment:"lawful evil",ac:12,hp:22,hit_dice:"4d8 + 4",speed:"30 ft., swim 40 ft.",stats:[13,11,12,12,13,9],skillsaves:[{perception:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 15",languages:"Sahuagin",cr:"1/2",traits:[{name:"Blood Frenzy",desc:"The sahuagin has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Limited Amphibiousness",desc:"The sahuagin can breathe air and water, but it needs to be submerged at least once every 4 hours to avoid suffocating.",attack_bonus:0},{name:"Shark Telepathy",desc:"The sahuagin can magically command any shark within 120 feet of it, using a limited telepathy.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The sahuagin makes two melee attacks: one with its bite and one with its claws or spear.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Claws",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 3 (1d4 + 1) slashing damage.",attack_bonus:3,damage_dice:"1d4",damage_bonus:1},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +3 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 4 (1d6 + 1) piercing damage, or 5 (1d8 + 1) piercing damage if used with two hands to make a melee attack.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Salamander",size:"Large",type:"elemental",subtype:"",alignment:"neutral evil",ac:15,hp:90,hit_dice:"12d10 + 24",speed:"30 ft.",stats:[18,14,15,11,10,12],damage_vulnerabilities:"cold",damage_resistances:"bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"fire",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 10",languages:"Ignan",cr:"5",traits:[{name:"Heated Body",desc:"A creature that touches the salamander or hits it with a melee attack while within 5 ft. of it takes 7 (2d6) fire damage.",attack_bonus:0,damage_dice:"2d6"},{name:"Heated Weapons",desc:"Any metal melee weapon the salamander wields deals an extra 3 (1d6) fire damage on a hit (included in the attack).",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The salamander makes two attacks: one with its spear and one with its tail.",attack_bonus:0},{name:"Spear",desc:"Melee or Ranged Weapon Attack: +7 to hit, reach 5 ft. or range 20 ft./60 ft., one target. Hit: 11 (2d6 + 4) piercing damage, or 13 (2d8 + 4) piercing damage if used with two hands to make a melee attack, plus 3 (1d6) fire damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Tail",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage plus 7 (2d6) fire damage, and the target is grappled (escape DC 14). Until this grapple ends, the target is restrained, the salamander can automatically hit the target with its tail, and the salamander can't make tail attacks against other targets.",attack_bonus:7,damage_dice:"2d6 + 2d6",damage_bonus:4}]},{name:"Satyr",size:"Medium",type:"fey",subtype:"",alignment:"chaotic neutral",ac:14,hp:31,hit_dice:"7d8 + -1",speed:"40 ft.",stats:[12,16,11,12,10,14],skillsaves:[{perception:2},{performance:6},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"Common, Elvish, Sylvan",cr:"1/2",traits:[{name:"Magic Resistance",desc:"The satyr has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Ram",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 6 (2d4 + 1) bludgeoning damage.",attack_bonus:3,damage_dice:"2d4",damage_bonus:1},{name:"Shortsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1 d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Shortbow",desc:"Ranged Weapon Attack: +5 to hit, range 80/320 ft., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Variant: Panpipes",desc:"Gentle Lullaby. The creature falls asleep and is unconscious for 1 minute. The effect ends if the creature takes damage or if someone takes an action to shake the creature awake.",attack_bonus:0}]},{name:"Scorpion",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:1,hit_dice:"1d4 + -2",speed:"10 ft.",stats:[2,11,8,1,8,2],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"blindsight 10 ft., passive Perception 9",languages:"",cr:"0",actions:[{name:"Sting",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one creature. Hit: 1 piercing damage, and the target must make a DC 9 Constitution saving throw, taking 4 (1d8) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:2,damage_bonus:1}]},{name:"Scout",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:13,hp:16,hit_dice:"3d8 + 2",speed:"30 ft.",stats:[11,14,12,11,13,11],skillsaves:[{nature:4},{perception:5},{stealth:6},{survival:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 15",languages:"any one language (usually Common)",cr:"1/2",traits:[{name:"Keen Hearing and Sight",desc:"The scout has advantage on Wisdom (Perception) checks that rely on hearing or sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The scout makes two melee attacks or two ranged attacks.",attack_bonus:0},{name:"Shortsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Longbow",desc:"Ranged Weapon Attack: +4 to hit, ranged 150/600 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Sea Hag",size:"Medium",type:"fey",subtype:"",alignment:"chaotic evil",ac:14,hp:52,hit_dice:"7d8 + 20",speed:"30 ft., swim 40 ft.",stats:[16,13,16,12,12,13],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 11",languages:"Aquan, Common, Giant",cr:"2",traits:[{name:"Amphibious",desc:"The hag can breathe air and water.",attack_bonus:0},{name:"Horrific Appearance",desc:"Any humanoid that starts its turn within 30 feet of the hag and can see the hag's true form must make a DC 11 Wisdom saving throw. On a failed save, the creature is frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, with disadvantage if the hag is within line of sight, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the hag's Horrific Appearance for the next 24 hours.\\nUnless the target is surprised or the revelation of the hag's true form is sudden, the target can avert its eyes and avoid making the initial saving throw. Until the start of its next turn, a creature that averts its eyes has disadvantage on attack rolls against the hag.",attack_bonus:0},{name:"Hag Coven",desc:"When hags must work together, they form covens, in spite of their selfish natures. A coven is made up of hags of any type, all of whom are equals within the group. However, each of the hags continues to desire more personal power.\\nA coven consists of three hags so that any arguments between two hags can be settled by the third. If more than three hags ever come together, as might happen if two covens come into conflict, the result is usually chaos.",attack_bonus:0},{name:"Shared Spellcasting (Coven Only)",desc:"While all three members of a hag coven are within 30 feet of one another, they can each cast the following spells from the wizard's spell list but must share the spell slots among themselves:\\n\\n\u2022 1st level (4 slots): identify, ray of sickness\\n\u2022 2nd level (3 slots): hold person, locate object\\n\u2022 3rd level (3 slots): bestow curse, counterspell, lightning bolt\\n\u2022 4th level (3 slots): phantasmal killer, polymorph\\n\u2022 5th level (2 slots): contact other plane, scrying\\n\u2022 6th level (1 slot): eye bite\\n\\nFor casting these spells, each hag is a 12th-level spellcaster that uses Intelligence as her spellcasting ability. The spell save DC is 12+the hag's Intelligence modifier, and the spell attack bonus is 4+the hag's Intelligence modifier.",attack_bonus:0},{name:"Hag Eye (Coven Only)",desc:"A hag coven can craft a magic item called a hag eye, which is made from a real eye coated in varnish and often fitted to a pendant or other wearable item. The hag eye is usually entrusted to a minion for safekeeping and transport. A hag in the coven can take an action to see what the hag eye sees if the hag eye is on the same plane of existence. A hag eye has AC 10, 1 hit point, and darkvision with a radius of 60 feet. If it is destroyed, each coven member takes 3d10 psychic damage and is blinded for 24 hours.\\nA hag coven can have only one hag eye at a time, and creating a new one requires all three members of the coven to perform a ritual. The ritual takes 1 hour, and the hags can't perform it while blinded. During the ritual, if the hags take any action other than performing the ritual, they must start over.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3},{name:"Death Glare",desc:"The hag targets one frightened creature she can see within 30 ft. of her. If the target can see the hag, it must succeed on a DC 11 Wisdom saving throw against this magic or drop to 0 hit points.",attack_bonus:0},{name:"Illusory Appearance",desc:"The hag covers herself and anything she is wearing or carrying with a magical illusion that makes her look like an ugly creature of her general size and humanoid shape. The effect ends if the hag takes a bonus action to end it or if she dies.\\nThe changes wrought by this effect fail to hold up to physical inspection. For example, the hag could appear to have no claws, but someone touching her hand might feel the claws. Otherwise, a creature must take an action to visually inspect the illusion and succeed on a DC 16 Intelligence (Investigation) check to discern that the hag is disguised.",attack_bonus:0}]},{name:"Sea Horse",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:1,hit_dice:"1d4 + -2",speed:"swim 20 ft.",stats:[1,12,8,1,10,2],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"0",traits:[{name:"Water Breathing",desc:"The sea horse can breathe only underwater.",attack_bonus:0}]},{name:"Shadow",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:12,hp:16,hit_dice:"3d8 + 2",speed:"40 ft.",stats:[6,14,13,6,10,8],skillsaves:[{stealth:4}],damage_vulnerabilities:"radiant",damage_resistances:"acid, cold, fire, lightning, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"necrotic, poison",condition_immunities:"exhaustion, frightened, grappled, paralyzed, petrified, poisoned, prone, restrained",senses:"darkvision 60 ft., passive Perception 10",languages:"",cr:"1/2",traits:[{name:"Amorphous",desc:"The shadow can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Shadow Stealth",desc:"While in dim light or darkness, the shadow can take the Hide action as a bonus action. Its stealth bonus is also improved to +6.",attack_bonus:0},{name:"Sunlight Weakness",desc:"While in sunlight, the shadow has disadvantage on attack rolls, ability checks, and saving throws.",attack_bonus:0}],actions:[{name:"Strength Drain",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 9 (2d6 + 2) necrotic damage, and the target's Strength score is reduced by 1d4. The target dies if this reduces its Strength to 0. Otherwise, the reduction lasts until the target finishes a short or long rest.\\nIf a non-evil humanoid dies from this attack, a new shadow rises from the corpse 1d4 hours later.",attack_bonus:4,damage_dice:"2d6",damage_bonus:2}]},{name:"Shambling Mound",size:"Large",type:"plant",subtype:"",alignment:"unaligned",ac:15,hp:136,hit_dice:"16d10 + 48",speed:"20 ft., swim 20 ft.",stats:[18,8,16,5,10,5],skillsaves:[{stealth:2}],damage_vulnerabilities:"",damage_resistances:"cold, fire",damage_immunities:"lightning",condition_immunities:"blinded, deafened, exhaustion",senses:"blindsight 60 ft. (blind beyond this radius), passive Perception 10",languages:"",cr:"5",traits:[{name:"Lightning Absorption",desc:"Whenever the shambling mound is subjected to lightning damage, it takes no damage and regains a number of hit points equal to the lightning damage dealt.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The shambling mound makes two slam attacks. If both attacks hit a Medium or smaller target, the target is grappled (escape DC 14), and the shambling mound uses its Engulf on it.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Engulf",desc:"The shambling mound engulfs a Medium or smaller creature grappled by it. The engulfed target is blinded, restrained, and unable to breathe, and it must succeed on a DC 14 Constitution saving throw at the start of each of the mound's turns or take 13 (2d8 + 4) bludgeoning damage. If the mound moves, the engulfed target moves with it. The mound can have only one creature engulfed at a time.",attack_bonus:0}]},{name:"Shield Guardian",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:17,hp:142,hit_dice:"15d10 + 59",speed:"30 ft.",stats:[18,8,18,7,10,3],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, exhaustion, frightened, paralyzed, poisoned",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 10",languages:"understands commands given in any language but can't speak",cr:"7",traits:[{name:"Bound",desc:"The shield guardian is magically bound to an amulet. As long as the guardian and its amulet are on the same plane of existence, the amulet's wearer can telepathically call the guardian to travel to it, and the guardian knows the distance and direction to the amulet. If the guardian is within 60 feet of the amulet's wearer, half of any damage the wearer takes (rounded up) is transferred to the guardian.",attack_bonus:0},{name:"Regeneration",desc:"The shield guardian regains 10 hit points at the start of its turn if it has at least 1 hit. point.",attack_bonus:0},{name:"Spell Storing",desc:"A spellcaster who wears the shield guardian's amulet can cause the guardian to store one spell of 4th level or lower. To do so, the wearer must cast the spell on the guardian. The spell has no effect but is stored within the guardian. When commanded to do so by the wearer or when a situation arises that was predefined by the spellcaster, the guardian casts the stored spell with any parameters set by the original caster, requiring no components. When the spell is cast or a new spell is stored, any previously stored spell is lost.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The guardian makes two fist attacks.",attack_bonus:0},{name:"Fist",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4}],reactions:[{name:"Shield",desc:"When a creature makes an attack against the wearer of the guardian's amulet, the guardian grants a +2 bonus to the wearer's AC if the guardian is within 5 feet of the wearer.",attack_bonus:0}]},{name:"Shrieker",size:"Medium",type:"plant",subtype:"",alignment:"unaligned",ac:5,hp:13,hit_dice:"3d8 + -1",speed:"0 ft.",stats:[1,1,10,1,3,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"blinded, deafened, frightened",senses:"blindsight 30 ft. (blind beyond this radius), passive Perception 6",languages:"",cr:"0",traits:[{name:"False Appearance",desc:"While the shrieker remains motionless, it is indistinguishable from an ordinary fungus.",attack_bonus:0}],actions:[{name:"Shriek",desc:"When bright light or a creature is within 30 feet of the shrieker, it emits a shriek audible within 300 feet of it. The shrieker continues to shriek until the disturbance moves out of range and for 1d4 of the shrieker's turns afterward",attack_bonus:0}]},{name:"Silver Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"lawful good",ac:17,hp:45,hit_dice:"6d8 + 18",speed:"30 ft., fly 60 ft.",stats:[19,10,17,12,11,15],saves:[{dexterity:2},{constitution:5},{wisdom:2},{charisma:4}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 9 (1d10 + 4) piercing damage.",attack_bonus:6,damage_dice:"1d10",damage_bonus:4},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nCold Breath. The dragon exhales an icy blast in a 15-foot cone. Each creature in that area must make a DC 13 Constitution saving throw, taking 18 (4d8) cold damage on a failed save, or half as much damage on a successful one.\\nParalyzing Breath. The dragon exhales paralyzing gas in a 15-foot cone. Each creature in that area must succeed on a DC 13 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"4d8"}]},{name:"Skeleton",size:"Medium",type:"undead",subtype:"",alignment:"lawful evil",ac:13,hp:13,hit_dice:"2d8 + 4",speed:"30 ft.",stats:[10,14,15,6,8,5],damage_vulnerabilities:"bludgeoning",damage_resistances:"",damage_immunities:"",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"understands all languages it spoke in life but can't speak",cr:"1/4",actions:[{name:"Shortsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Shortbow",desc:"Ranged Weapon Attack: +4 to hit, range 80/320 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Solar",size:"Large",type:"celestial",subtype:"",alignment:"lawful good",ac:21,hp:243,hit_dice:"18d10 + 144",speed:"50 ft., fly 150 ft.",stats:[26,22,26,25,25,30],saves:[{intelligence:14},{wisdom:14},{charisma:17}],skillsaves:[{perception:14}],damage_vulnerabilities:"",damage_resistances:"radiant; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"necrotic, poison",condition_immunities:"charmed, exhaustion, frightened, poisoned",senses:"truesight 120 ft., passive Perception 24",languages:"all, telepathy 120 ft.",cr:"21",traits:[{name:"Angelic Weapons",desc:"The solar's weapon attacks are magical. When the solar hits with any weapon, the weapon deals an extra 6d8 radiant damage (included in the attack).",attack_bonus:0},{name:"Divine Awareness",desc:"The solar knows if it hears a lie.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The solar's spell casting ability is Charisma (spell save DC 25). It can innately cast the following spells, requiring no material components:\\nAt will: detect evil and good, invisibility (self only)\\n3/day each: blade barrier, dispel evil and good, resurrection\\n1/day each: commune, control weather",attack_bonus:0},{name:"Magic Resistance",desc:"The solar has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The solar makes two greatsword attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +15 to hit, reach 5 ft., one target. Hit: 22 (4d6 + 8) slashing damage plus 27 (6d8) radiant damage.",attack_bonus:15,damage_dice:"4d6 + 6d8",damage_bonus:8},{name:"Slaying Longbow",desc:"Ranged Weapon Attack: +13 to hit, range 150/600 ft., one target. Hit: 15 (2d8 + 6) piercing damage plus 27 (6d8) radiant damage. If the target is a creature that has 190 hit points or fewer, it must succeed on a DC 15 Constitution saving throw or die.",attack_bonus:13,damage_dice:"2d8 + 6d8",damage_bonus:6},{name:"Flying Sword",desc:"The solar releases its greatsword to hover magically in an unoccupied space within 5 ft. of it. If the solar can see the sword, the solar can mentally command it as a bonus action to fly up to 50 ft. and either make one attack against a target or return to the solar's hands. If the hovering sword is targeted by any effect, the solar is considered to be holding it. The hovering sword falls if the solar dies.",attack_bonus:0},{name:"Healing Touch (4/Day)",desc:"The solar touches another creature. The target magically regains 40 (8d8 + 4) hit points and is freed from any curse, disease, poison, blindness, or deafness.",attack_bonus:0}],legendary_actions:[{name:"Teleport",desc:"The solar magically teleports, along with any equipment it is wearing or carrying, up to 120 ft. to an unoccupied space it can see.",attack_bonus:0},{name:"Searing Burst (Costs 2 Actions)",desc:"The solar emits magical, divine energy. Each creature of its choice in a 10 -foot radius must make a DC 23 Dexterity saving throw, taking 14 (4d6) fire damage plus 14 (4d6) radiant damage on a failed save, or half as much damage on a successful one.",attack_bonus:0},{name:"Blinding Gaze (Costs 3 Actions)",desc:"The solar targets one creature it can see within 30 ft. of it. If the target can see it, the target must succeed on a DC 15 Constitution saving throw or be blinded until magic such as the lesser restoration spell removes the blindness.",attack_bonus:0}]},{name:"Specter",size:"Medium",type:"undead",subtype:"",alignment:"chaotic evil",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"0 ft., fly 50 ft. (hover)",stats:[1,14,11,10,10,11],damage_vulnerabilities:"",damage_resistances:"acid, cold, fire, lightning, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"necrotic, poison",condition_immunities:"charmed, exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 10",languages:"understands all languages it knew in life but can't speak",cr:"1",traits:[{name:"Incorporeal Movement",desc:"The specter can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the specter has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Life Drain",desc:"Melee Spell Attack: +4 to hit, reach 5 ft., one creature. Hit: 10 (3d6) necrotic damage. The target must succeed on a DC 10 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the creature finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.",attack_bonus:4,damage_dice:"3d6"}]},{name:"Spider",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:1,hit_dice:"1d4 + -2",speed:"20 ft., climb 20 ft.",stats:[2,14,8,1,10,2],skillsaves:[{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 30 ft., passive Perception 12",languages:"",cr:"0",traits:[{name:"Spider Climb",desc:"The spider can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Sense",desc:"While in contact with a web, the spider knows the exact location of any other creature in contact with the same web.",attack_bonus:0},{name:"Web Walker",desc:"The spider ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 1 piercing damage, and the target must succeed on a DC 9 Constitution saving throw or take 2 (1d4) poison damage.",attack_bonus:4,damage_bonus:1}]},{name:"Spirit Naga",size:"Large",type:"monstrosity",subtype:"",alignment:"chaotic evil",ac:15,hp:75,hit_dice:"10d10 + 20",speed:"40 ft.",stats:[18,17,14,16,15,16],saves:[{dexterity:6},{constitution:5},{wisdom:5},{charisma:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, poisoned",senses:"darkvision 60 ft., passive Perception 12",languages:"Abyssal, Common",cr:"8",traits:[{name:"Rejuvenation",desc:"If it dies, the naga returns to life in 1d6 days and regains all its hit points. Only a wish spell can prevent this trait from functioning.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one creature. Hit: 7 (1d6 + 4) piercing damage, and the target must make a DC 13 Constitution saving throw, taking 31 (7d8) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:7,damage_dice:"1d6",damage_bonus:4}],spells:["The naga is a 10th-level spellcaster. Its spellcasting ability is Intelligence (spell save DC 14, +6 to hit with spell attacks), and it needs only verbal components to cast its spells. It has the following wizard spells prepared:",{"Cantrips (at will)":"mage hand, minor illusion, ray of frost"},{"1st level (4 slots)":"charm person, detect magic, sleep"},{"2nd level (3 slots)":"detect thoughts, hold person"},{"3rd level (3 slots)":"lightning bolt, water breathing"},{"4th level (3 slots)":"blight, dimension door"},{"5th level (2 slots)":"dominate person"}]},{name:"Sprite",size:"Tiny",type:"fey",subtype:"",alignment:"neutral good",ac:15,hp:2,hit_dice:"1d4 + -1",speed:"10 ft., fly 40 ft.",stats:[3,18,10,14,13,11],skillsaves:[{perception:3},{stealth:8}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"Common, Elvish, Sylvan",cr:"1/4",actions:[{name:"Longsword",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 1 slashing damage.",attack_bonus:2,damage_bonus:1},{name:"Shortbow",desc:"Ranged Weapon Attack: +6 to hit, range 40/160 ft., one target. Hit: 1 piercing damage, and the target must succeed on a DC 10 Constitution saving throw or become poisoned for 1 minute. If its saving throw result is 5 or lower, the poisoned target falls unconscious for the same duration, or until it takes damage or another creature takes an action to shake it awake.",attack_bonus:6,damage_bonus:1},{name:"Heart Sight",desc:"The sprite touches a creature and magically knows the creature's current emotional state. If the target fails a DC 10 Charisma saving throw, the sprite also knows the creature's alignment. Celestials, fiends, and undead automatically fail the saving throw.",attack_bonus:0},{name:"Invisibility",desc:"The sprite magically turns invisible until it attacks or casts a spell, or until its concentration ends (as if concentrating on a spell). Any equipment the sprite wears or carries is invisible with it.",attack_bonus:0}]},{name:"Spy",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:12,hp:27,hit_dice:"6d8",speed:"30 ft.",stats:[10,15,10,12,14,16],skillsaves:[{deception:5},{insight:4},{investigation:5},{perception:6},{persuasion:5},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 16",languages:"any two languages",cr:"1",traits:[{name:"Cunning Action",desc:"On each of its turns, the spy can use a bonus action to take the Dash, Disengage, or Hide action.",attack_bonus:0},{name:"Sneak Attack (1/Turn)",desc:"The spy deals an extra 7 (2d6) damage when it hits a target with a weapon attack and has advantage on the attack roll, or when the target is within 5 ft. of an ally of the spy that isn't incapacitated and the spy doesn't have disadvantage on the attack roll.",attack_bonus:0,damage_dice:"2d6"}],actions:[{name:"Multiattack",desc:"The spy makes two melee attacks.",attack_bonus:0},{name:"Shortsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Hand Crossbow",desc:"Ranged Weapon Attack: +4 to hit, range 30/120 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Steam Mephit",size:"Small",type:"elemental",subtype:"",alignment:"neutral evil",ac:10,hp:21,hit_dice:"6d6",speed:"30 ft., fly 30 ft.",stats:[5,11,10,11,10,12],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire, poison",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 10",languages:"Aquan, Ignan",cr:"1/4",traits:[{name:"Death Burst",desc:"When the mephit dies, it explodes in a cloud of steam. Each creature within 5 ft. of the mephit must succeed on a DC 10 Dexterity saving throw or take 4 (1d8) fire damage.",attack_bonus:0,damage_dice:"1d8"},{name:"Innate Spellcasting (1/Day)",desc:"The mephit can innately cast blur, requiring no material components. Its innate spellcasting ability is Charisma.",attack_bonus:0}],actions:[{name:"Claws",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one creature. Hit: 2 (1d4) slashing damage plus 2 (1d4) fire damage.",attack_bonus:2,damage_dice:"2d4"},{name:"Steam Breath (Recharge 6)",desc:"The mephit exhales a 15-foot cone of scalding steam. Each creature in that area must succeed on a DC 10 Dexterity saving throw, taking 4 (1d8) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0},{name:"Variant: Summon Mephits (1/Day)",desc:"The mephit has a 25 percent chance of summoning 1d4 mephits of its kind. A summoned mephit appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other mephits. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Stirge",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:14,hp:2,hit_dice:"1d4 + -1",speed:"10 ft., fly 40 ft.",stats:[4,16,11,2,8,6],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 9",languages:"",cr:"1/8",actions:[{name:"Blood Drain",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 5 (1d4 + 3) piercing damage, and the stirge attaches to the target. While attached, the stirge doesn't attack. Instead, at the start of each of the stirge's turns, the target loses 5 (1d4 + 3) hit points due to blood loss.\\nThe stirge can detach itself by spending 5 feet of its movement. It does so after it drains 10 hit points of blood from the target or the target dies. A creature, including the target, can use its action to detach the stirge.",attack_bonus:5,damage_dice:"1d4",damage_bonus:3}]},{name:"Stone Giant",size:"Huge",type:"giant",subtype:"",alignment:"neutral",ac:17,hp:126,hit_dice:"11d12 + 54",speed:"40 ft.",stats:[23,15,20,10,12,9],saves:[{dexterity:5},{constitution:8},{wisdom:4}],skillsaves:[{athletics:12},{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Giant",cr:"7",traits:[{name:"Stone Camouflage",desc:"The giant has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The giant makes two greatclub attacks.",attack_bonus:0},{name:"Greatclub",desc:"Melee Weapon Attack: +9 to hit, reach 15 ft., one target. Hit: 19 (3d8 + 6) bludgeoning damage.",attack_bonus:9,damage_dice:"3d8",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +9 to hit, range 60/240 ft., one target. Hit: 28 (4d10 + 6) bludgeoning damage. If the target is a creature, it must succeed on a DC 17 Strength saving throw or be knocked prone.",attack_bonus:9,damage_dice:"4d10",damage_bonus:6}],reactions:[{name:"Rock Catching",desc:"If a rock or similar object is hurled at the giant, the giant can, with a successful DC 10 Dexterity saving throw, catch the missile and take no bludgeoning damage from it.",attack_bonus:0}]},{name:"Stone Golem",size:"Large",type:"construct",subtype:"",alignment:"unaligned",ac:17,hp:178,hit_dice:"17d10 + 84",speed:"30 ft.",stats:[22,9,20,3,11,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison, psychic; bludgeoning, piercing, and slashing from nonmagical weapons that aren't adamantine",condition_immunities:"charmed, exhaustion, frightened, paralyzed, petrified, poisoned",senses:"darkvision 120 ft., passive Perception 10",languages:"understands the languages of its creator but can't speak",cr:"10",traits:[{name:"Immutable Form",desc:"The golem is immune to any spell or effect that would alter its form.",attack_bonus:0},{name:"Magic Resistance",desc:"The golem has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The golem's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The golem makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 19 (3d8 + 6) bludgeoning damage.",attack_bonus:10,damage_dice:"3d8",damage_bonus:6},{name:"Slow (Recharge 5-6)",desc:"The golem targets one or more creatures it can see within 10 ft. of it. Each target must make a DC 17 Wisdom saving throw against this magic. On a failed save, a target can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the target can take either an action or a bonus action on its turn, not both. These effects last for 1 minute. A target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0}]},{name:"Storm Giant",size:"Huge",type:"giant",subtype:"",alignment:"chaotic good",ac:16,hp:230,hit_dice:"20d12 + 100",speed:"50 ft., swim 50 ft.",stats:[29,14,20,16,18,18],saves:[{strength:14},{constitution:10},{wisdom:9},{charisma:9}],skillsaves:[{arcana:8},{athletics:14},{history:8},{perception:9}],damage_vulnerabilities:"",damage_resistances:"cold",damage_immunities:"lightning, thunder",condition_immunities:"",senses:"passive Perception 19",languages:"Common, Giant",cr:"13",traits:[{name:"Amphibious",desc:"The giant can breathe air and water.",attack_bonus:0},{name:"Innate Spellcasting",desc:"The giant's innate spellcasting ability is Charisma (spell save DC 17). It can innately cast the following spells, requiring no material components:\\n\\nAt will: detect magic, feather fall, levitate, light\\n3/day each: control weather, water breathing",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The giant makes two greatsword attacks.",attack_bonus:0},{name:"Greatsword",desc:"Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 30 (6d6 + 9) slashing damage.",attack_bonus:14,damage_dice:"6d6",damage_bonus:9},{name:"Rock",desc:"Ranged Weapon Attack: +14 to hit, range 60/240 ft., one target. Hit: 35 (4d12 + 9) bludgeoning damage.",attack_bonus:14,damage_dice:"4d12",damage_bonus:9},{name:"Lightning Strike (Recharge 5-6)",desc:"The giant hurls a magical lightning bolt at a point it can see within 500 feet of it. Each creature within 10 feet of that point must make a DC 17 Dexterity saving throw, taking 54 (12d8) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d8"}]},{name:"Succubus/Incubus",size:"Medium",type:"fiend",subtype:"shapechanger",alignment:"neutral evil",ac:15,hp:66,hit_dice:"12d8 + 12",speed:"30 ft., fly 60 ft.",stats:[8,17,13,15,12,20],skillsaves:[{deception:9},{insight:5},{perception:5},{persuasion:9},{stealth:7}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning, poison; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 15",languages:"Abyssal, Common, Infernal, telepathy 60 ft.",cr:"4",traits:[{name:"Telepathic Bond",desc:"The fiend ignores the range restriction on its telepathy when communicating with a creature it has charmed. The two don't even need to be on the same plane of existence.",attack_bonus:0},{name:"Shapechanger",desc:"The fiend can use its action to polymorph into a Small or Medium humanoid, or back into its true form. Without wings, the fiend loses its flying speed. Other than its size and speed, its statistics are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0}],actions:[{name:"Claw (Fiend Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Charm",desc:"One humanoid the fiend can see within 30 feet of it must succeed on a DC 15 Wisdom saving throw or be magically charmed for 1 day. The charmed target obeys the fiend's verbal or telepathic commands. If the target suffers any harm or receives a suicidal command, it can repeat the saving throw, ending the effect on a success. If the target successfully saves against the effect, or if the effect on it ends, the target is immune to this fiend's Charm for the next 24 hours.\\nThe fiend can have only one target charmed at a time. If it charms another, the effect on the previous target ends.",attack_bonus:0},{name:"Draining Kiss",desc:"The fiend kisses a creature charmed by it or a willing creature. The target must make a DC 15 Constitution saving throw against this magic, taking 32 (5d10 + 5) psychic damage on a failed save, or half as much damage on a successful one. The target's hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.",attack_bonus:0,damage_dice:"5d10",damage_bonus:5},{name:"Etherealness",desc:"The fiend magically enters the Ethereal Plane from the Material Plane, or vice versa.",attack_bonus:0}]},{name:"Swarm of Bats",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"0 ft., fly 30 ft.",stats:[5,15,10,2,12,4],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 60 ft., passive Perception 11",languages:"",cr:"1/4",traits:[{name:"Echolocation",desc:"The swarm can't use its blindsight while deafened.",attack_bonus:0},{name:"Keen Hearing",desc:"The swarm has advantage on Wisdom (Perception) checks that rely on hearing.",attack_bonus:0},{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny bat. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +4 to hit, reach 0 ft., one creature in the swarm's space. Hit: 5 (2d4) piercing damage, or 2 (1d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:4,damage_dice:"2d4"}]},{name:"Swarm of Beetles",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"20 ft., burrow 5 ft., climb 20 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:3,damage_dice:"4d4"}]},{name:"Swarm of Centipedes",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"20 ft., climb 20 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.\\nA creature reduced to 0 hit points by a swarm of centipedes is stable but poisoned for 1 hour, even after regaining hit points, and paralyzed while poisoned in this way.",attack_bonus:3,damage_dice:"4d4"}]},{name:"Swarm of Insects",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"20 ft., climb 20 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:3,damage_dice:"4d4"}]},{name:"Swarm of Poisonous Snakes",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:14,hp:36,hit_dice:"8d8",speed:"30 ft., swim 30 ft.",stats:[8,18,11,1,10,3],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 10",languages:"",cr:"2",traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny snake. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +6 to hit, reach 0 ft., one creature in the swarm's space. Hit: 7 (2d6) piercing damage, or 3 (1d6) piercing damage if the swarm has half of its hit points or fewer. The target must make a DC 10 Constitution saving throw, taking 14 (4d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:6,damage_dice:"2d6"}]},{name:"Swarm of Quippers",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:13,hp:28,hit_dice:"8d8 + -8",speed:"0 ft., swim 40 ft.",stats:[13,16,9,1,7,2],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"darkvision 60 ft., passive Perception 8",languages:"",cr:"1",traits:[{name:"Blood Frenzy",desc:"The swarm has advantage on melee attack rolls against any creature that doesn't have all its hit points.",attack_bonus:0},{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny quipper. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0},{name:"Water Breathing",desc:"The swarm can breathe only underwater.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +5 to hit, reach 0 ft., one creature in the swarm's space. Hit: 14 (4d6) piercing damage, or 7 (2d6) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:5,damage_dice:"4d6"}]},{name:"Swarm of Rats",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:10,hp:24,hit_dice:"7d8 + -8",speed:"30 ft.",stats:[9,11,9,2,10,3],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"darkvision 30 ft., passive Perception 10",languages:"",cr:"1/4",traits:[{name:"Keen Smell",desc:"The swarm has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny rat. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +2 to hit, reach 0 ft., one target in the swarm's space. Hit: 7 (2d6) piercing damage, or 3 (1d6) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:2,damage_dice:"2d6"}]},{name:"Swarm of Ravens",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:24,hit_dice:"7d8 + -8",speed:"10 ft., fly 50 ft.",stats:[6,14,8,3,12,6],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"passive Perception 15",languages:"",cr:"1/4",traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny raven. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Beaks",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target in the swarm's space. Hit: 7 (2d6) piercing damage, or 3 (1d6) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:4,damage_dice:"2d6"}]},{name:"Swarm of Spiders",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"20 ft., climb 20 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0},{name:"Spider Climb",desc:"The swarm can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Web Sense",desc:"While in contact with a web, the swarm knows the exact location of any other creature in contact with the same web.",attack_bonus:0},{name:"Web Walker",desc:"The swarm ignores movement restrictions caused by webbing.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:3,damage_dice:"4d4"}]},{name:"Swarm of Wasps",size:"Medium",type:"swarm of Tiny beasts",subtype:"",alignment:"unaligned",ac:12,hp:22,hit_dice:"5d8 + -1",speed:"5 ft., fly 30 ft.",stats:[3,13,10,1,7,1],damage_vulnerabilities:"",damage_resistances:"bludgeoning, piercing, slashing",damage_immunities:"",condition_immunities:"charmed, frightened, grappled, paralyzed, petrified, prone, restrained, stunned",senses:"blindsight 10 ft., passive Perception 8",languages:"",cr:"1/2",traits:[{name:"Swarm",desc:"The swarm can occupy another creature's space and vice versa, and the swarm can move through any opening large enough for a Tiny insect. The swarm can't regain hit points or gain temporary hit points.",attack_bonus:0}],actions:[{name:"Bites",desc:"Melee Weapon Attack: +3 to hit, reach 0 ft., one target in the swarm's space. Hit: 10 (4d4) piercing damage, or 5 (2d4) piercing damage if the swarm has half of its hit points or fewer.",attack_bonus:3,damage_dice:"4d4"}]},{name:"Tarrasque",size:"Gargantuan",type:"monstrosity",subtype:"titan",alignment:"unaligned",ac:25,hp:676,hit_dice:"33d20 + 329",speed:"40 ft.",stats:[30,11,30,3,11,11],saves:[{intelligence:5},{wisdom:9},{charisma:9}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire, poison; bludgeoning, piercing, and slashing from nonmagical weapons",condition_immunities:"charmed, frightened, paralyzed, poisoned",senses:"blindsight 120 ft., passive Perception 10",languages:"",cr:"30",traits:[{name:"Legendary Resistance (3/Day)",desc:"If the tarrasque fails a saving throw, it can choose to succeed instead.",attack_bonus:0},{name:"Magic Resistance",desc:"The tarrasque has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Reflective Carapace",desc:"Any time the tarrasque is targeted by a magic missile spell, a line spell, or a spell that requires a ranged attack roll, roll a d6. On a 1 to 5, the tarrasque is unaffected. On a 6, the tarrasque is unaffected, and the effect is reflected back at the caster as though it originated from the tarrasque, turning the caster into the target.",attack_bonus:0},{name:"Siege Monster",desc:"The tarrasque deals double damage to objects and structures.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The tarrasque can use its Frightful Presence. It then makes five attacks: one with its bite, two with its claws, one with its horns, and one with its tai l. It can use its Swallow instead of its bite.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +19 to hit, reach 10 ft., one target. Hit: 36 (4d12 + 10) piercing damage. If the target is a creature, it is grappled (escape DC 20). Until this grapple ends, the target is restrained, and the tarrasque can't bite another target.",attack_bonus:19,damage_dice:"4d12",damage_bonus:10},{name:"Claw",desc:"Melee Weapon Attack: +19 to hit, reach 15 ft., one target. Hit: 28 (4d8 + 10) slashing damage.",attack_bonus:19,damage_dice:"4d8",damage_bonus:10},{name:"Horns",desc:"Melee Weapon Attack: +19 to hit, reach 10 ft., one target. Hit: 32 (4d10 + 10) piercing damage.",attack_bonus:19,damage_dice:"4d10",damage_bonus:10},{name:"Tail",desc:"Melee Weapon Attack: +19 to hit, reach 20 ft., one target. Hit: 24 (4d6 + 10) bludgeoning damage. If the target is a creature, it must succeed on a DC 20 Strength saving throw or be knocked prone.",attack_bonus:19,damage_dice:"4d6",damage_bonus:10},{name:"Frightful Presence",desc:"Each creature of the tarrasque's choice within 120 feet of it and aware of it must succeed on a DC 17 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, with disadvantage if the tarrasque is within line of sight, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the tarrasque's Frightful Presence for the next 24 hours.",attack_bonus:0},{name:"Swallow",desc:"The tarrasque makes one bite attack against a Large or smaller creature it is grappling. If the attack hits, the target takes the bite's damage, the target is swallowed, and the grapple ends. While swallowed, the creature is blinded and restrained, it has total cover against attacks and other effects outside the tarrasque, and it takes 56 (16d6) acid damage at the start of each of the tarrasque's turns.\\nIf the tarrasque takes 60 damage or more on a single turn from a creature inside it, the tarrasque must succeed on a DC 20 Constitution saving throw at the end of that turn or regurgitate all swallowed creatures, which fall prone in a space within 10 feet of the tarrasque. If the tarrasque dies, a swallowed creature is no longer restrained by it and can escape from the corpse by using 30 feet of movement, exiting prone.",attack_bonus:0}],legendary_actions:[{name:"Attack",desc:"The tarrasque makes one claw attack or tail attack.",attack_bonus:0},{name:"Move",desc:"The tarrasque moves up to half its speed.",attack_bonus:0},{name:"Chomp (Costs 2 Actions)",desc:"The tarrasque makes one bite attack or uses its Swallow.",attack_bonus:0}]},{name:"Thug",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any non-good alignment",ac:11,hp:32,hit_dice:"5d8 + 9",speed:"30 ft.",stats:[15,11,14,10,10,11],skillsaves:[{intimidation:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language (usually Common)",cr:"1/2",traits:[{name:"Pack Tactics",desc:"The thug has advantage on an attack roll against a creature if at least one of the thug's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The thug makes two melee attacks.",attack_bonus:0},{name:"Mace",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) bludgeoning damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Heavy Crossbow",desc:"Ranged Weapon Attack: +2 to hit, range 100/400 ft., one target. Hit: 5 (1d10) piercing damage.",attack_bonus:2,damage_dice:"1d10"}]},{name:"Tiger",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:12,hp:37,hit_dice:"5d10 + 9",speed:"40 ft.",stats:[17,15,14,3,12,8],skillsaves:[{perception:3},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"",cr:"1",traits:[{name:"Keen Smell",desc:"The tiger has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Pounce",desc:"If the tiger moves at least 20 ft. straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the tiger can make one bite attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3},{name:"Claw",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage.",attack_bonus:0}]},{name:"Treant",size:"Huge",type:"plant",subtype:"",alignment:"chaotic good",ac:16,hp:138,hit_dice:"12d12 + 60",speed:"30 ft.",stats:[23,8,21,12,16,12],damage_vulnerabilities:"fire",damage_resistances:"bludgeoning, piercing",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"Common, Druidic, Elvish, Sylvan",cr:"9",traits:[{name:"False Appearance",desc:"While the treant remains motionless, it is indistinguishable from a normal tree.",attack_bonus:0},{name:"Siege Monster",desc:"The treant deals double damage to objects and structures.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The treant makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 16 (3d6 + 6) bludgeoning damage.",attack_bonus:10,damage_dice:"3d6",damage_bonus:6},{name:"Rock",desc:"Ranged Weapon Attack: +10 to hit, range 60/180 ft., one target. Hit: 28 (4d10 + 6) bludgeoning damage.",attack_bonus:10,damage_dice:"4d10",damage_bonus:6},{name:"Animate Trees (1/Day)",desc:"The treant magically animates one or two trees it can see within 60 feet of it. These trees have the same statistics as a treant, except they have Intelligence and Charisma scores of 1, they can't speak, and they have only the Slam action option. An animated tree acts as an ally of the treant. The tree remains animate for 1 day or until it dies; until the treant dies or is more than 120 feet from the tree; or until the treant takes a bonus action to turn it back into an inanimate tree. The tree then takes root if possible.",attack_bonus:0}]},{name:"Tribal Warrior",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:12,hp:11,hit_dice:"2d8 + 2",speed:"30 ft.",stats:[13,11,12,8,11,8],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"any one language",cr:"1/8",traits:[{name:"Pack Tactics",desc:"The warrior has advantage on an attack roll against a creature if at least one of the warrior's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Spear",desc:"Melee or Ranged Weapon Attack: +3 to hit, reach 5 ft. or range 20/60 ft., one target. Hit: 4 (1d6 + 1) piercing damage, or 5 (1d8 + 1) piercing damage if used with two hands to make a melee attack.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]},{name:"Triceratops",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:95,hit_dice:"10d12 + 30",speed:"50 ft.",stats:[22,9,17,2,11,5],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 10",languages:"",cr:"5",traits:[{name:"Trampling Charge",desc:"If the triceratops moves at least 20 ft. straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 13 Strength saving throw or be knocked prone. If the target is prone, the triceratops can make one stomp attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Gore",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 24 (4d8 + 6) piercing damage.",attack_bonus:9,damage_dice:"4d8",damage_bonus:6},{name:"Stomp",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one prone creature. Hit: 22 (3d10 + 6) bludgeoning damage",attack_bonus:9,damage_dice:"3d10",damage_bonus:6}]},{name:"Troll",size:"Large",type:"giant",subtype:"",alignment:"chaotic evil",ac:15,hp:84,hit_dice:"8d10 + 40",speed:"30 ft.",stats:[18,13,20,7,9,7],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 12",languages:"Giant",cr:"5",traits:[{name:"Keen Smell",desc:"The troll has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0},{name:"Regeneration",desc:"The troll regains 10 hit points at the start of its turn. If the troll takes acid or fire damage, this trait doesn't function at the start of the troll's next turn. The troll dies only if it starts its turn with 0 hit points and doesn't regenerate.",attack_bonus:0},{name:"Variant: Loathsome Limbs",desc:"Whenever the troll takes at least 15 slashing damage at one time, roll a d20 to determine what else happens to it:\\n1-10: Nothing else happens.\\n11-14: One leg is severed from the troll if it has any legs left.\\n15- 18: One arm is severed from the troll if it has any arms left.\\n19-20: The troll is decapitated, but the troll dies only if it can't regenerate. If it dies, so does the severed head.\\nIf the troll finishes a short or long rest without reattaching a severed limb or head, the part regrows. At that point, the severed part dies. Until then, a severed part acts on the troll's initiative and has its own action and movement. A severed part has AC 13, 10 hit points, and the troll's Regeneration trait.\\nA severed leg is unable to attack and has a speed of 5 feet.\\nA severed arm has a speed of 5 feet and can make one claw attack on its turn, with disadvantage on the attack roll unless the troll can see the arm and its target. Each time the troll loses an arm, it loses a claw attack.\\nIf its head is severed, the troll loses its bite attack and its body is blinded unless the head can see it. The severed head has a speed of 0 feet and the troll's Keen Smell trait. It can make a bite attack but only against a target in its space.\\nThe troll's speed is halved if it's missing a leg. If it loses both legs, it falls prone. If it has both arms, it can crawl. With only one arm, it can still crawl, but its speed is halved. With no arms or legs, its speed is 0, and it can't benefit from bonuses to speed.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The troll makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 7 (1d6 + 4) piercing damage.",attack_bonus:7,damage_dice:"1d6",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4}]},{name:"Tyrannosaurus Rex",size:"Huge",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:136,hit_dice:"13d12 + 51",speed:"50 ft.",stats:[25,10,19,2,12,9],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 14",languages:"",cr:"8",actions:[{name:"Multiattack",desc:"The tyrannosaurus makes two attacks: one with its bite and one with its tail. It can't make both attacks against the same target.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 33 (4d12 + 7) piercing damage. If the target is a Medium or smaller creature, it is grappled (escape DC 17). Until this grapple ends, the target is restrained, and the tyrannosaurus can't bite another target.",attack_bonus:10,damage_dice:"4d12",damage_bonus:7},{name:"Tail",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 20 (3d8 + 7) bludgeoning damage.",attack_bonus:10,damage_dice:"3d8",damage_bonus:7}]},{name:"Unicorn",size:"Large",type:"celestial",subtype:"",alignment:"lawful good",ac:12,hp:67,hit_dice:"9d10 + 17",speed:"50 ft.",stats:[18,14,15,11,17,16],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"charmed, paralyzed, poisoned",senses:"darkvision 60 ft., passive Perception 13",languages:"Celestial, Elvish, Sylvan, telepathy 60 ft.",cr:"5",traits:[{name:"Charge",desc:"If the unicorn moves at least 20 ft. straight toward a target and then hits it with a horn attack on the same turn, the target takes an extra 9 (2d8) piercing damage. If the target is a creature, it must succeed on a DC 15 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d8"},{name:"Innate Spellcasting",desc:"The unicorn's innate spellcasting ability is Charisma (spell save DC 14). The unicorn can innately cast the following spells, requiring no components:\\n\\nAt will: detect evil and good, druidcraft, pass without trace\\n1/day each: calm emotions, dispel evil and good, entangle",attack_bonus:0},{name:"Magic Resistance",desc:"The unicorn has advantage on saving throws against spells and other magical effects.",attack_bonus:0},{name:"Magic Weapons",desc:"The unicorn's weapon attacks are magical.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The unicorn makes two attacks: one with its hooves and one with its horn.",attack_bonus:0},{name:"Hooves",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft ., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Horn",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft ., one target. Hit: 8 (1d8 + 4) piercing damage.",attack_bonus:7,damage_dice:"1d8",damage_bonus:4},{name:"Healing Touch (3/Day)",desc:"The unicorn touches another creature with its horn. The target magically regains 11 (2d8 + 2) hit points. In addition, the touch removes all diseases and neutralizes all poisons afflicting the target.",attack_bonus:0},{name:"Teleport (1/Day)",desc:"The unicorn magically teleports itself and up to three willing creatures it can see within 5 ft. of it, along with any equipment they are wearing or carrying, to a location the unicorn is familiar with, up to 1 mile away.",attack_bonus:0}],legendary_actions:[{name:"Hooves",desc:"The unicorn makes one attack with its hooves.",attack_bonus:0},{name:"Shimmering Shield (Costs 2 Actions)",desc:"The unicorn creates a shimmering, magical field around itself or another creature it can see within 60 ft. of it. The target gains a +2 bonus to AC until the end of the unicorn's next turn.",attack_bonus:0},{name:"Heal Self (Costs 3 Actions)",desc:"The unicorn magically regains 11 (2d8 + 2) hit points.",attack_bonus:0}]},{name:"Vampire",size:"Medium",type:"undead",subtype:"shapechanger",alignment:"lawful evil",ac:16,hp:144,hit_dice:"17d8 + 67",speed:"30 ft.",stats:[18,18,18,17,15,18],saves:[{dexterity:9},{wisdom:7},{charisma:9}],skillsaves:[{perception:7},{stealth:9}],damage_vulnerabilities:"",damage_resistances:"necrotic; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 120 ft., passive Perception 17",languages:"the languages it knew in life",cr:"13",traits:[{name:"Shapechanger",desc:"If the vampire isn't in sun light or running water, it can use its action to polymorph into a Tiny bat or a Medium cloud of mist, or back into its true form.\\nWhile in bat form, the vampire can't speak, its walking speed is 5 feet, and it has a flying speed of 30 feet. Its statistics, other than its size and speed, are unchanged. Anything it is wearing transforms with it, but nothing it is carrying does. It reverts to its true form if it dies.\\nWhile in mist form, the vampire can't take any actions, speak, or manipulate objects. It is weightless, has a flying speed of 20 feet, can hover, and can enter a hostile creature's space and stop there. In addition, if air can pass through a space, the mist can do so without squeezing, and it can't pass through water. It has advantage on Strength, Dexterity, and Constitution saving throws, and it is immune to all nonmagical damage, except the damage it takes from sunlight.",attack_bonus:0},{name:"Legendary Resistance (3/Day)",desc:"If the vampire fails a saving throw, it can choose to succeed instead.",attack_bonus:0},{name:"Misty Escape",desc:"When it drops to 0 hit points outside its resting place, the vampire transforms into a cloud of mist (as in the Shapechanger trait) instead of falling unconscious, provided that it isn't in sunlight or running water. If it can't transform, it is destroyed.\\nWhile it has 0 hit points in mist form, it can't revert to its vampire form, and it must reach its resting place within 2 hours or be destroyed. Once in its resting place, it reverts to its vampire form. It is then paralyzed until it regains at least 1 hit point. After spending 1 hour in its resting place with 0 hit points, it regains 1 hit point.",attack_bonus:0},{name:"Regeneration",desc:"The vampire regains 20 hit points at the start of its turn if it has at least 1 hit point and isn't in sunlight or running water. If the vampire takes radiant damage or damage from holy water, this trait doesn't function at the start of the vampire's next turn.",attack_bonus:0},{name:"Spider Climb",desc:"The vampire can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Vampire Weaknesses",desc:"The vampire has the following flaws:\\nForbiddance. The vampire can't enter a residence without an invitation from one of the occupants.\\nHarmed by Running Water. The vampire takes 20 acid damage if it ends its turn in running water.\\nStake to the Heart. If a piercing weapon made of wood is driven into the vampire's heart while the vampire is incapacitated in its resting place, the vampire is paralyzed until the stake is removed.\\nSunlight Hypersensitivity. The vampire takes 20 radiant damage when it starts its turn in sunlight. While in sunlight, it has disadvantage on attack rolls and ability checks.",attack_bonus:0}],actions:[{name:"Multiattack (Vampire Form Only)",desc:"The vampire makes two attacks, only one of which can be a bite attack.",attack_bonus:0},{name:"Unarmed Strike (Vampire Form Only)",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one creature. Hit: 8 (1d8 + 4) bludgeoning damage. Instead of dealing damage, the vampire can grapple the target (escape DC 18).",attack_bonus:9,damage_dice:"1d8",damage_bonus:4},{name:"Bite (Bat or Vampire Form Only)",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one willing creature, or a creature that is grappled by the vampire, incapacitated, or restrained. Hit: 7 (1d6 + 4) piercing damage plus 10 (3d6) necrotic damage. The target's hit point maximum is reduced by an amount equal to the necrotic damage taken, and the vampire regains hit points equal to that amount. The reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0. A humanoid slain in this way and then buried in the ground rises the following night as a vampire spawn under the vampire's control.",attack_bonus:9,damage_dice:"1d6 + 3d6",damage_bonus:4},{name:"Charm",desc:"The vampire targets one humanoid it can see within 30 ft. of it. If the target can see the vampire, the target must succeed on a DC 17 Wisdom saving throw against this magic or be charmed by the vampire. The charmed target regards the vampire as a trusted friend to be heeded and protected. Although the target isn't under the vampire's control, it takes the vampire's requests or actions in the most favorable way it can, and it is a willing target for the vampire's bit attack.\\nEach time the vampire or the vampire's companions do anything harmful to the target, it can repeat the saving throw, ending the effect on itself on a success. Otherwise, the effect lasts 24 hours or until the vampire is destroyed, is on a different plane of existence than the target, or takes a bonus action to end the effect.",attack_bonus:0},{name:"Children of the Night (1/Day)",desc:"The vampire magically calls 2d4 swarms of bats or rats, provided that the sun isn't up. While outdoors, the vampire can call 3d6 wolves instead. The called creatures arrive in 1d4 rounds, acting as allies of the vampire and obeying its spoken commands. The beasts remain for 1 hour, until the vampire dies, or until the vampire dismisses them as a bonus action.",attack_bonus:0}],legendary_actions:[{name:"Move",desc:"The vampire moves up to its speed without provoking opportunity attacks.",attack_bonus:0},{name:"Unarmed Strike",desc:"The vampire makes one unarmed strike.",attack_bonus:0},{name:"Bite (Costs 2 Actions)",desc:"The vampire makes one bite attack.",attack_bonus:0}]},{name:"Vampire Spawn",size:"Medium",type:"undead",subtype:"",alignment:"neutral evil",ac:15,hp:82,hit_dice:"11d8 + 32",speed:"30 ft.",stats:[16,16,16,11,10,12],saves:[{dexterity:6},{wisdom:3}],skillsaves:[{perception:3},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"necrotic; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 13",languages:"the languages it knew in life",cr:"5",traits:[{name:"Regeneration",desc:"The vampire regains 10 hit points at the start of its turn if it has at least 1 hit point and isn't in sunlight or running water. If the vampire takes radiant damage or damage from holy water, this trait doesn't function at the start of the vampire's next turn.",attack_bonus:0},{name:"Spider Climb",desc:"The vampire can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.",attack_bonus:0},{name:"Vampire Weaknesses",desc:"The vampire has the following flaws:\\nForbiddance. The vampire can't enter a residence without an invitation from one of the occupants.\\nHarmed by Running Water. The vampire takes 20 acid damage when it ends its turn in running water.\\nStake to the Heart. The vampire is destroyed if a piercing weapon made of wood is driven into its heart while it is incapacitated in its resting place.\\nSunlight Hypersensitivity. The vampire takes 20 radiant damage when it starts its turn in sunlight. While in sunlight, it has disadvantage on attack rolls and ability checks.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The vampire makes two attacks, only one of which can be a bite attack.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one willing creature, or a creature that is grappled by the vampire, incapacitated, or restrained. Hit: 6 (1d6 + 3) piercing damage plus 7 (2d6) necrotic damage. The target's hit point maximum is reduced by an amount equal to the necrotic damage taken, and the vampire regains hit points equal to that amount. The reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.",attack_bonus:61},{name:"Claws",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one creature. Hit: 8 (2d4 + 3) slashing damage. Instead of dealing damage, the vampire can grapple the target (escape DC 13).",attack_bonus:6,damage_dice:"2d4",damage_bonus:3}]},{name:"Veteran",size:"Medium",type:"humanoid",subtype:"any race",alignment:"any alignment",ac:17,hp:58,hit_dice:"9d8 + 17",speed:"30 ft.",stats:[16,13,14,10,11,10],skillsaves:[{athletics:5},{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 12",languages:"any one language (usually Common)",cr:"3",actions:[{name:"Multiattack",desc:"The veteran makes two longsword attacks. If it has a shortsword drawn, it can also make a shortsword attack.",attack_bonus:0},{name:"Longsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage, or 8 (1d10 + 3) slashing damage if used with two hands.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Shortsword",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) piercing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Heavy Crossbow",desc:"Ranged Weapon Attack: +3 to hit, range 100/400 ft., one target. Hit: 6 (1d10 + 1) piercing damage.",attack_bonus:3,damage_dice:"1d10",damage_bonus:1}]},{name:"Violet Fungus",size:"Medium",type:"plant",subtype:"",alignment:"unaligned",ac:5,hp:18,hit_dice:"4d8",speed:"5 ft.",stats:[3,1,10,1,3,1],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"blinded, deafened, frightened",senses:"blindsight 30 ft. (blind beyond this radius), passive Perception 6",languages:"",cr:"1/4",traits:[{name:"False Appearance",desc:"While the violet fungus remains motionless, it is indistinguishable from an ordinary fungus.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The fungus makes 1d4 Rotting Touch attacks.",attack_bonus:0},{name:"Rotting Touch",desc:"Melee Weapon Attack: +2 to hit, reach 10 ft., one creature. Hit: 4 (1d8) necrotic damage.",attack_bonus:2,damage_dice:"1d8"}]},{name:"Vrock",size:"Large",type:"fiend",subtype:"demon",alignment:"chaotic evil",ac:15,hp:104,hit_dice:"11d10 + 43",speed:"40 ft., fly 60 ft.",stats:[17,15,18,8,13,8],saves:[{dexterity:5},{wisdom:4},{charisma:2}],damage_vulnerabilities:"",damage_resistances:"cold, fire, lightning; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"poisoned",senses:"darkvision 120 ft., passive Perception 11",languages:"Abyssal, telepathy 120 ft.",cr:"6",traits:[{name:"Magic Resistance",desc:"The vrock has advantage on saving throws against spells and other magical effects.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The vrock makes two attacks: one with its beak and one with its talons.",attack_bonus:0},{name:"Beak",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:3},{name:"Talons",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 14 (2d10 + 3) slashing damage.",attack_bonus:6,damage_dice:"2d10",damage_bonus:3},{name:"Spores (Recharge 6)",desc:"A 15-foot-radius cloud of toxic spores extends out from the vrock. The spores spread around corners. Each creature in that area must succeed on a DC 14 Constitution saving throw or become poisoned. While poisoned in this way, a target takes 5 (1d10) poison damage at the start of each of its turns. A target can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. Emptying a vial of holy water on the target also ends the effect on it.",attack_bonus:0},{name:"Stunning Screech (1/Day)",desc:"The vrock emits a horrific screech. Each creature within 20 feet of it that can hear it and that isn't a demon must succeed on a DC 14 Constitution saving throw or be stunned until the end of the vrock's next turn .",attack_bonus:0},{name:"Variant: Summon Demon (1/Day)",desc:"The demon chooses what to summon and attempts a magical summoning.\\nA vrock has a 30 percent chance of summoning 2d4 dretches or one vrock.\\nA summoned demon appears in an unoccupied space within 60 feet of its summoner, acts as an ally of its summoner, and can't summon other demons. It remains for 1 minute, until it or its summoner dies, or until its summoner dismisses it as an action.",attack_bonus:0}]},{name:"Vulture",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:10,hp:5,hit_dice:"1d8",speed:"10 ft., fly 50 ft.",stats:[7,10,13,2,12,4],skillsaves:[{perception:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",traits:[{name:"Keen Sight and Smell",desc:"The vulture has advantage on Wisdom (Perception) checks that rely on sight or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The vulture has advantage on an attack roll against a creature if at least one of the vulture's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Beak",desc:"Melee Weapon Attack: +2 to hit, reach 5 ft., one target. Hit: 2 (1d4) piercing damage.",attack_bonus:2,damage_dice:"1d4"}]},{name:"Warhorse",size:"Large",type:"beast",subtype:"",alignment:"unaligned",ac:11,hp:19,hit_dice:"3d10 + 2",speed:"60 ft.",stats:[18,12,13,2,12,7],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 11",languages:"",cr:"1/2",traits:[{name:"Trampling Charge",desc:"If the horse moves at least 20 ft. straight toward a creature and then hits it with a hooves attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the horse can make another attack with its hooves against it as a bonus action.",attack_bonus:0}],actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Warhorse Skeleton",size:"Large",type:"undead",subtype:"",alignment:"lawful evil",ac:13,hp:22,hit_dice:"3d10 + 5",speed:"60 ft.",stats:[18,12,15,2,8,5],damage_vulnerabilities:"bludgeoning",damage_resistances:"",damage_immunities:"poison",condition_immunities:"exhaustion, poisoned",senses:"darkvision 60 ft., passive Perception 9",languages:"",cr:"1/2",actions:[{name:"Hooves",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) bludgeoning damage.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4}]},{name:"Water Elemental",size:"Large",type:"elemental",subtype:"",alignment:"neutral",ac:14,hp:114,hit_dice:"12d10 + 48",speed:"30 ft., swim 90 ft.",stats:[18,14,18,5,10,8],damage_vulnerabilities:"",damage_resistances:"acid; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"poison",condition_immunities:"exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained, unconscious",senses:"darkvision 60 ft., passive Perception 10",languages:"Aquan",cr:"5",traits:[{name:"Water Form",desc:"The elemental can enter a hostile creature's space and stop there. It can move through a space as narrow as 1 inch wide without squeezing.",attack_bonus:0},{name:"Freeze",desc:"If the elemental takes cold damage, it partially freezes; its speed is reduced by 20 ft. until the end of its next turn.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The elemental makes two slam attacks.",attack_bonus:0},{name:"Slam",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) bludgeoning damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Whelm (Recharge 4-6)",desc:"Each creature in the elemental's space must make a DC 15 Strength saving throw. On a failure, a target takes 13 (2d8 + 4) bludgeoning damage. If it is Large or smaller, it is also grappled (escape DC 14). Until this grapple ends, the target is restrained and unable to breathe unless it can breathe water. If the saving throw is successful, the target is pushed out of the elemental's space.\\nThe elemental can grapple one Large creature or up to two Medium or smaller creatures at one time. At the start of each of the elemental's turns, each target grappled by it takes 13 (2d8 + 4) bludgeoning damage. A creature within 5 feet of the elemental can pull a creature or object out of it by taking an action to make a DC 14 Strength and succeeding.",attack_bonus:0}]},{name:"Weasel",size:"Tiny",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:1,hit_dice:"1d4 + -2",speed:"30 ft.",stats:[3,16,8,2,12,3],skillsaves:[{perception:3},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"0",traits:[{name:"Keen Hearing and Smell",desc:"The weasel has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one creature. Hit: 1 piercing damage.",attack_bonus:5,damage_bonus:1}]},{name:"Werebear",size:"Medium",type:"humanoid",subtype:"human",alignment:"neutral good",ac:10,hp:135,hit_dice:"18d8 + 54",speed:"30 ft. (40 ft., climb 30 ft. in bear or hybrid form)",stats:[19,10,17,11,12,12],skillsaves:[{perception:7}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't silvered",condition_immunities:"",senses:"passive Perception 17",languages:"Common (can't speak in bear form)",cr:"5",traits:[{name:"Shapechanger",desc:"The werebear can use its action to polymorph into a Large bear-humanoid hybrid or into a Large bear, or back into its true form, which is humanoid. Its statistics, other than its size and AC, are the same in each form. Any equipment it. is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Keen Smell",desc:"The werebear has advantage on WisGlom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"In bear form, the werebear makes two claw attacks. In humanoid form, it makes two greataxe attacks. In hybrid form, it can attack like a bear or a humanoid.",attack_bonus:0},{name:"Bite (Bear or Hybrid Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 15 (2d10 + 4) piercing damage. If the target is a humanoid, it must succeed on a DC 14 Constitution saving throw or be cursed with were bear lycanthropy.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Claw (Bear or Hybrid Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Greataxe (Humanoid or Hybrid Form Only)",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 10 (1d12 + 4) slashing damage.",attack_bonus:7,damage_dice:"1d12",damage_bonus:4}]},{name:"Wereboar",size:"Medium",type:"humanoid",subtype:"human",alignment:"neutral evil",ac:10,hp:78,hit_dice:"12d8 + 24",speed:"30 ft. (40 ft. in boar form)",stats:[17,10,15,10,11,8],skillsaves:[{perception:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't silvered",condition_immunities:"",senses:"passive Perception 12",languages:"Common (can't speak in boar form)",cr:"4",traits:[{name:"Shapechanger",desc:"The wereboar can use its action to polymorph into a boar-humanoid hybrid or into a boar, or back into its true form, which is humanoid. Its statistics, other than its AC, are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Charge (Boar or Hybrid Form Only)",desc:"If the wereboar moves at least 15 feet straight toward a target and then hits it with its tusks on the same turn, the target takes an extra 7 (2d6) slashing damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:0,damage_dice:"2d6"},{name:"Relentless (Recharges after a Short or Long Rest)",desc:"If the wereboar takes 14 damage or less that would reduce it to 0 hit points, it is reduced to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Multiattack (Humanoid or Hybrid Form Only)",desc:"The wereboar makes two attacks, only one of which can be with its tusks.",attack_bonus:0},{name:"Maul (Humanoid or Hybrid Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) bludgeoning damage.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3},{name:"Tusks (Boar or Hybrid Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) slashing damage. If the target is a humanoid, it must succeed on a DC 12 Constitution saving throw or be cursed with wereboar lycanthropy.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Wererat",size:"Medium",type:"humanoid",subtype:"human",alignment:"lawful evil",ac:12,hp:33,hit_dice:"6d8 + 6",speed:"30 ft.",stats:[10,15,12,11,10,8],skillsaves:[{perception:2},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't silvered",condition_immunities:"",senses:"darkvision 60 ft. (rat form only), passive Perception 12",languages:"Common (can't speak in rat form)",cr:"2",traits:[{name:"Shapechanger",desc:"The wererat can use its action to polymorph into a rat-humanoid hybrid or into a giant rat, or back into its true form, which is humanoid. Its statistics, other than its size, are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Keen Smell",desc:"The wererat has advantage on Wisdom (Perception) checks that rely on smell.",attack_bonus:0}],actions:[{name:"Multiattack (Humanoid or Hybrid Form Only)",desc:"The wererat makes two attacks, only one of which can be a bite.",attack_bonus:0},{name:"Bite (Rat or Hybrid Form Only).",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d4 + 2) piercing damage. If the target is a humanoid, it must succeed on a DC 11 Constitution saving throw or be cursed with wererat lycanthropy.",attack_bonus:4,damage_dice:"1d4",damage_bonus:2},{name:"Shortsword (Humanoid or Hybrid Form Only)",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Hand Crossbow (Humanoid or Hybrid Form Only)",desc:"Ranged Weapon Attack: +4 to hit, range 30/120 ft., one target. Hit: 5 (1d6 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2}]},{name:"Weretiger",size:"Medium",type:"humanoid",subtype:"human",alignment:"neutral",ac:12,hp:120,hit_dice:"16d8 + 48",speed:"30 ft. (40 ft. in tiger form)",stats:[17,15,16,10,13,11],skillsaves:[{perception:5},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't silvered",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 15",languages:"Common (can't speak in tiger form)",cr:"4",traits:[{name:"Shapechanger",desc:"The weretiger can use its action to polymorph into a tiger-humanoid hybrid or into a tiger, or back into its true form, which is humanoid. Its statistics, other than its size, are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Keen Hearing and Smell",desc:"The weretiger has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pounce (Tiger or Hybrid Form Only)",desc:"If the weretiger moves at least 15 feet straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the weretiger can make one bite attack against it as a bonus action.",attack_bonus:0}],actions:[{name:"Multiattack (Humanoid or Hybrid Form Only)",desc:"In humanoid form, the weretiger makes two scimitar attacks or two longbow attacks. In hybrid form, it can attack like a humanoid or make two claw attacks.",attack_bonus:0},{name:"Bite (Tiger or Hybrid Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 8 (1d10 + 3) piercing damage. If the target is a humanoid, it must succeed on a DC 13 Constitution saving throw or be cursed with weretiger lycanthropy.",attack_bonus:5,damage_dice:"1d10",damage_bonus:3},{name:"Claw (Tiger or Hybrid Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 7 (1d8 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d8",damage_bonus:3},{name:"Scimitar (Humanoid or Hybrid Form Only)",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:5,damage_dice:"1d6",damage_bonus:3},{name:"Longbow (Humanoid or Hybrid Form Only)",desc:"Ranged Weapon Attack: +4 to hit, range 150/600 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Werewolf",size:"Medium",type:"humanoid",subtype:"human",alignment:"chaotic evil",ac:11,hp:58,hit_dice:"9d8 + 17",speed:"30 ft. (40 ft. in wolf form)",stats:[15,13,14,10,11,10],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't silvered",condition_immunities:"",senses:"passive Perception 14",languages:"Common (can't speak in wolf form)",cr:"3",traits:[{name:"Shapechanger",desc:"The werewolf can use its action to polymorph into a wolf-humanoid hybrid or into a wolf, or back into its true form, which is humanoid. Its statistics, other than its AC, are the same in each form. Any equipment it is wearing or carrying isn't transformed. It reverts to its true form if it dies.",attack_bonus:0},{name:"Keen Hearing and Smell",desc:"The werewolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Multiattack (Humanoid or Hybrid Form Only)",desc:"The werewolf makes two attacks: one with its bite and one with its claws or spear.",attack_bonus:0},{name:"Bite (Wolf or Hybrid Form Only)",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) piercing damage. If the target is a humanoid, it must succeed on a DC 12 Constitution saving throw or be cursed with werewolf lycanthropy.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Claws (Hybrid Form Only)",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 7 (2d4 + 2) slashing damage.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2},{name:"Spear (Humanoid Form Only)",desc:"Melee or Ranged Weapon Attack: +4 to hit, reach 5 ft. or range 20/60 ft., one creature. Hit: 5 (1d6 + 2) piercing damage, or 6 (1d8 + 2) piercing damage if used with two hands to make a melee attack.",attack_bonus:4,damage_dice:"1d6",damage_bonus:-2}]},{name:"White Dragon Wyrmling",size:"Medium",type:"dragon",subtype:"",alignment:"chaotic evil",ac:16,hp:32,hit_dice:"5d8 + 9",speed:"30 ft., burrow 15 ft., fly 60 ft., swim 30 ft.",stats:[14,10,14,5,10,11],saves:[{dexterity:2},{constitution:4},{wisdom:2},{charisma:2}],skillsaves:[{perception:4},{stealth:2}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 10 ft., darkvision 60 ft., passive Perception 14",languages:"Draconic",cr:"2",actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (1d10 + 2) piercing damage plus 2 (1d4) cold damage.",attack_bonus:4,damage_dice:"1d10 + 1d4",damage_bonus:2},{name:"Cold Breath (Recharge 5-6)",desc:"The dragon exhales an icy blast of hail in a 15-foot cone. Each creature in that area must make a DC 12 Constitution saving throw, taking 22 (5d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"5d8"}]},{name:"Wight",size:"Medium",type:"undead",subtype:"",alignment:"neutral evil",ac:14,hp:45,hit_dice:"6d8 + 18",speed:"30 ft.",stats:[15,14,16,10,13,15],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"necrotic; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 13",languages:"the languages it knew in life",cr:"3",traits:[{name:"Sunlight Sensitivity",desc:"While in sunlight, the wight has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The wight makes two longsword attacks or two longbow attacks. It can use its Life Drain in place of one longsword attack.",attack_bonus:0},{name:"Life Drain",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one creature. Hit: 5 (1d6 + 2) necrotic damage. The target must succeed on a DC 13 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.\\nA humanoid slain by this attack rises 24 hours later as a zombie under the wight's control, unless the humanoid is restored to life or its body is destroyed. The wight can have no more than twelve zombies under its control at one time.",attack_bonus:4,damage_dice:"1d6",damage_bonus:2},{name:"Longsword",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 6 (1d8 + 2) slashing damage, or 7 (1d10 + 2) slashing damage if used with two hands.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2},{name:"Longbow",desc:"Ranged Weapon Attack: +4 to hit, range 150/600 ft., one target. Hit: 6 (1d8 + 2) piercing damage.",attack_bonus:4,damage_dice:"1d8",damage_bonus:2}]},{name:"Will-o'-Wisp",size:"Tiny",type:"undead",subtype:"",alignment:"chaotic evil",ac:19,hp:22,hit_dice:"9d4 + -1",speed:"0 ft., fly 50 ft. (hover)",stats:[1,28,10,13,14,11],damage_vulnerabilities:"",damage_resistances:"acid, cold, fire, necrotic, thunder; bludgeoning, piercing, and slashing from nonmagical weapons",damage_immunities:"lightning, poison",condition_immunities:"exhaustion, grappled, paralyzed, poisoned, prone, restrained, unconscious",senses:"darkvision 120 ft., passive Perception 12",languages:"the languages it knew in life",cr:"2",traits:[{name:"Consume Life",desc:"As a bonus action, the will-o'-wisp can target one creature it can see within 5 ft. of it that has 0 hit points and is still alive. The target must succeed on a DC 10 Constitution saving throw against this magic or die. If the target dies, the will-o'-wisp regains 10 (3d6) hit points.",attack_bonus:0},{name:"Ephemeral",desc:"The will-o'-wisp can't wear or carry anything.",attack_bonus:0},{name:"Incorporeal Movement",desc:"The will-o'-wisp can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.",attack_bonus:0},{name:"Variable Illumination",desc:"The will-o'-wisp sheds bright light in a 5- to 20-foot radius and dim light for an additional number of ft. equal to the chosen radius. The will-o'-wisp can alter the radius as a bonus action.",attack_bonus:0}],actions:[{name:"Shock",desc:"Melee Spell Attack: +4 to hit, reach 5 ft., one creature. Hit: 9 (2d8) lightning damage.",attack_bonus:4,damage_dice:"2d8"},{name:"Invisibility",desc:"The will-o'-wisp and its light magically become invisible until it attacks or uses its Consume Life, or until its concentration ends (as if concentrating on a spell).",attack_bonus:0}]},{name:"Winter Wolf",size:"Large",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:13,hp:75,hit_dice:"10d10 + 20",speed:"50 ft.",stats:[18,13,14,7,12,8],skillsaves:[{perception:5},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"passive Perception 15",languages:"Common, Giant, Winter Wolf",cr:"3",traits:[{name:"Keen Hearing and Smell",desc:"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0},{name:"Snow Camouflage",desc:"The wolf has advantage on Dexterity (Stealth) checks made to hide in snowy terrain.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) piercing damage. If the target is a creature, it must succeed on a DC 14 Strength saving throw or be knocked prone.",attack_bonus:6,damage_dice:"2d6",damage_bonus:4},{name:"Cold Breath (Recharge 5-6)",desc:"The wolf exhales a blast of freezing wind in a 15-foot cone. Each creature in that area must make a DC 12 Dexterity saving throw, taking 18 (4d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"4d8"}]},{name:"Wolf",size:"Medium",type:"beast",subtype:"",alignment:"unaligned",ac:13,hp:11,hit_dice:"2d8 + 2",speed:"40 ft.",stats:[12,15,12,3,12,6],skillsaves:[{perception:3},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"passive Perception 13",languages:"",cr:"1/4",traits:[{name:"Keen Hearing and Smell",desc:"The wolf has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0},{name:"Pack Tactics",desc:"The wolf has advantage on an attack roll against a creature if at least one of the wolf's allies is within 5 ft. of the creature and the ally isn't incapacitated.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) piercing damage. If the target is a creature, it must succeed on a DC 11 Strength saving throw or be knocked prone.",attack_bonus:4,damage_dice:"2d4",damage_bonus:2}]},{name:"Worg",size:"Large",type:"monstrosity",subtype:"",alignment:"neutral evil",ac:13,hp:26,hit_dice:"4d10 + 4",speed:"50 ft.",stats:[16,13,13,7,11,8],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"Goblin, Worg",cr:"1/2",traits:[{name:"Keen Hearing and Smell",desc:"The worg has advantage on Wisdom (Perception) checks that rely on hearing or smell.",attack_bonus:0}],actions:[{name:"Bite",desc:"Melee Weapon Attack: +5 to hit, reach 5 ft., one target. Hit: 10 (2d6 + 3) piercing damage. If the target is a creature, it must succeed on a DC 13 Strength saving throw or be knocked prone.",attack_bonus:5,damage_dice:"2d6",damage_bonus:3}]},{name:"Wraith",size:"Medium",type:"undead",subtype:"",alignment:"neutral evil",ac:13,hp:67,hit_dice:"9d8 + 26",speed:"0 ft., fly 60 ft. (hover)",stats:[6,16,16,12,14,15],damage_vulnerabilities:"",damage_resistances:"acid, cold, fire, lightning, thunder; bludgeoning, piercing, and slashing from nonmagical weapons that aren't silvered",damage_immunities:"necrotic, poison",condition_immunities:"charmed, exhaustion, grappled, paralyzed, petrified, poisoned, prone, restrained",senses:"darkvision 60 ft., passive Perception 12",languages:"the languages it knew in life",cr:"5",traits:[{name:"Incorporeal Movement",desc:"The wraith can move through other creatures and objects as if they were difficult terrain. It takes 5 (1d10) force damage if it ends its turn inside an object.",attack_bonus:0},{name:"Sunlight Sensitivity",desc:"While in sunlight, the wraith has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.",attack_bonus:0}],actions:[{name:"Life Drain",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one creature. Hit: 21 (4d8 + 3) necrotic damage. The target must succeed on a DC 14 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken. This reduction lasts until the target finishes a long rest. The target dies if this effect reduces its hit point maximum to 0.",attack_bonus:6,damage_dice:"4d8",damage_bonus:3},{name:"Create Specter",desc:"The wraith targets a humanoid within 10 feet of it that has been dead for no longer than 1 minute and died violently. The target's spirit rises as a specter in the space of its corpse or in the nearest unoccupied space. The specter is under the wraith's control. The wraith can have no more than seven specters under its control at one time.",attack_bonus:0}]},{name:"Wyvern",size:"Large",type:"dragon",subtype:"",alignment:"unaligned",ac:13,hp:110,hit_dice:"13d10 + 38",speed:"20 ft., fly 80 ft.",stats:[19,10,16,5,12,6],skillsaves:[{perception:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., passive Perception 14",languages:"",cr:"6",actions:[{name:"Multiattack",desc:"The wyvern makes two attacks: one with its bite and one with its stinger. While flying, it can use its claws in place of one other attack.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one creature. Hit: 11 (2d6 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Claws",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 13 (2d8 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d8",damage_bonus:4},{name:"Stinger",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one creature. Hit: 11 (2d6 + 4) piercing damage. The target must make a DC 15 Constitution saving throw, taking 24 (7d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4}]},{name:"Xorn",size:"Medium",type:"elemental",subtype:"",alignment:"neutral",ac:19,hp:73,hit_dice:"7d8 + 41",speed:"20 ft., burrow 20 ft.",stats:[17,10,22,11,10,11],skillsaves:[{perception:6},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"piercing and slashing from nonmagical weapons that aren't adamantine",damage_immunities:"",condition_immunities:"",senses:"darkvision 60 ft., tremorsense 60 ft., passive Perception 16",languages:"Terran",cr:"5",traits:[{name:"Earth Glide",desc:"The xorn can burrow through nonmagical, unworked earth and stone. While doing so, the xorn doesn't disturb the material it moves through.",attack_bonus:0},{name:"Stone Camouflage",desc:"The xorn has advantage on Dexterity (Stealth) checks made to hide in rocky terrain.",attack_bonus:0},{name:"Treasure Sense",desc:"The xorn can pinpoint, by scent, the location of precious metals and stones, such as coins and gems, within 60 ft. of it.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The xorn makes three claw attacks and one bite attack.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 13 (3d6 + 3) piercing damage.",attack_bonus:6,damage_dice:"3d6",damage_bonus:3},{name:"Claw",desc:"Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 6 (1d6 + 3) slashing damage.",attack_bonus:6,damage_dice:"1d6",damage_bonus:3}]},{name:"Young Black Dragon",size:"Large",type:"dragon",subtype:"",alignment:"chaotic evil",ac:18,hp:127,hit_dice:"15d10 + 44",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[19,14,17,12,11,15],saves:[{dexterity:5},{constitution:6},{wisdom:3},{charisma:5}],skillsaves:[{perception:6},{stealth:5}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 16",languages:"Common, Draconic",cr:"7",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage plus 4 (1d8) acid damage.",attack_bonus:7,damage_dice:"2d10 + 1d8",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Acid Breath (Recharge 5-6)",desc:"The dragon exhales acid in a 30-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw, taking 49 (11d8) acid damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"11d8"}]},{name:"Young Blue Dragon",size:"Large",type:"dragon",subtype:"",alignment:"lawful evil",ac:18,hp:152,hit_dice:"16d10 + 64",speed:"40 ft., burrow 40 ft., fly 80 ft.",stats:[21,10,19,14,13,17],saves:[{dexterity:4},{constitution:8},{wisdom:5},{charisma:7}],skillsaves:[{perception:9},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 19",languages:"Common, Draconic",cr:"9",actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 16 (2d10 + 5) piercing damage plus 5 (1d10) lightning damage.",attack_bonus:9,damage_dice:"2d10 + 1d10",damage_bonus:5},{name:"Claw",desc:"Melee Weapon Attack: +9 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:9,damage_dice:"2d6",damage_bonus:5},{name:"Lightning Breath (Recharge 5-6)",desc:"The dragon exhales lightning in an 60-foot line that is 5 feet wide. Each creature in that line must make a DC 16 Dexterity saving throw, taking 55 (10d10) lightning damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"10d10"}]},{name:"Young Brass Dragon",size:"Large",type:"dragon",subtype:"",alignment:"chaotic good",ac:17,hp:110,hit_dice:"13d10 + 38",speed:"40 ft., burrow 20 ft., fly 80 ft.",stats:[19,10,17,12,11,15],saves:[{dexterity:3},{constitution:6},{wisdom:3},{charisma:5}],skillsaves:[{perception:6},{persuasion:5},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 16",languages:"Common, Draconic",cr:"6",actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nFire Breath. The dragon exhales fire in a 40-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw, taking 42 (12d6) fire damage on a failed save, or half as much damage on a successful one.\\nSleep Breath. The dragon exhales sleep gas in a 30-foot cone. Each creature in that area must succeed on a DC 14 Constitution saving throw or fall unconscious for 5 minutes. This effect ends for a creature if the creature takes damage or someone uses an action to wake it.",attack_bonus:0,damage_dice:"12d6"}]},{name:"Young Bronze Dragon",size:"Large",type:"dragon",subtype:"",alignment:"lawful good",ac:18,hp:142,hit_dice:"15d10 + 59",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[21,10,19,14,13,17],saves:[{dexterity:3},{constitution:7},{wisdom:4},{charisma:6}],skillsaves:[{insight:4},{perception:7},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"lightning",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 17",languages:"Common, Draconic",cr:"8",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +8 to hit, reach 10 ft., one target. Hit: 16 (2d10 + 5) piercing damage.",attack_bonus:8,damage_dice:"2d10",damage_bonus:5},{name:"Claw",desc:"Melee Weapon Attack: +8 to hit, reach 5 ft., one target. Hit: 12 (2d6 + 5) slashing damage.",attack_bonus:8,damage_dice:"2d6",damage_bonus:5},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nLightning Breath. The dragon exhales lightning in a 60-foot line that is 5 feet wide. Each creature in that line must make a DC 15 Dexterity saving throw, taking 55 (10d10) lightning damage on a failed save, or half as much damage on a successful one.\\nRepulsion Breath. The dragon exhales repulsion energy in a 30-foot cone. Each creature in that area must succeed on a DC 15 Strength saving throw. On a failed save, the creature is pushed 40 feet away from the dragon.",attack_bonus:0,damage_dice:"10d10"}]},{name:"Young Copper Dragon",size:"Large",type:"dragon",subtype:"",alignment:"chaotic good",ac:17,hp:119,hit_dice:"14d10 + 42",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[19,12,17,16,13,15],saves:[{dexterity:4},{constitution:6},{wisdom:4},{charisma:5}],skillsaves:[{deception:5},{perception:7},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"acid",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 17",languages:"Common, Draconic",cr:"7",actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage.",attack_bonus:7,damage_dice:"2d10",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nAcid Breath. The dragon exhales acid in an 40-foot line that is 5 feet wide. Each creature in that line must make a DC 14 Dexterity saving throw, taking 40 (9d8) acid damage on a failed save, or half as much damage on a successful one.\\nSlowing Breath. The dragon exhales gas in a 30-foot cone. Each creature in that area must succeed on a DC 14 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw at the end of each of its turns, ending the effect on itself with a successful save.",attack_bonus:0,damage_dice:"9d8"}]},{name:"Young Gold Dragon",size:"Large",type:"dragon",subtype:"",alignment:"lawful good",ac:18,hp:178,hit_dice:"17d10 + 84",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[23,14,21,16,13,20],saves:[{dexterity:6},{constitution:9},{wisdom:5},{charisma:9}],skillsaves:[{insight:5},{perception:9},{persuasion:9},{stealth:6}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 19",languages:"Common, Draconic",cr:"10",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage.",attack_bonus:10,damage_dice:"2d10",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:10,damage_dice:"2d6",damage_bonus:6},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nFire Breath. The dragon exhales fire in a 30-foot cone. Each creature in that area must make a DC 17 Dexterity saving throw, taking 55 (10d10) fire damage on a failed save, or half as much damage on a successful one.\\nWeakening Breath. The dragon exhales gas in a 30-foot cone. Each creature in that area must succeed on a DC 17 Strength saving throw or have disadvantage on Strength-based attack rolls, Strength checks, and Strength saving throws for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"10d10"}]},{name:"Young Green Dragon",size:"Large",type:"dragon",subtype:"",alignment:"lawful evil",ac:18,hp:136,hit_dice:"16d10 + 48",speed:"40 ft., fly 80 ft., swim 40 ft.",stats:[19,12,17,16,13,15],saves:[{dexterity:4},{constitution:6},{wisdom:4},{charisma:5}],skillsaves:[{deception:5},{perception:7},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"poison",condition_immunities:"poisoned",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 17",languages:"Common, Draconic",cr:"8",traits:[{name:"Amphibious",desc:"The dragon can breathe air and water.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage plus 7 (2d6) poison damage.",attack_bonus:7,damage_dice:"2d10 + 2d6",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Poison Breath (Recharge 5-6)",desc:"The dragon exhales poisonous gas in a 30-foot cone. Each creature in that area must make a DC 14 Constitution saving throw, taking 42 (12d6) poison damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"12d6"}]},{name:"Young Red Dragon",size:"Large",type:"dragon",subtype:"",alignment:"chaotic evil",ac:18,hp:178,hit_dice:"17d10 + 84",speed:"40 ft., climb 40 ft., fly 80 ft.",stats:[23,10,21,14,11,19],saves:[{dexterity:4},{constitution:9},{wisdom:4},{charisma:8}],skillsaves:[{perception:8},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"fire",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 18",languages:"Common, Draconic",cr:"10",actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage plus 3 (1d6) fire damage.",attack_bonus:10,damage_dice:"2d10 + 1d6",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:10,damage_dice:"2d6",damage_bonus:6},{name:"Fire Breath (Recharge 5-6)",desc:"The dragon exhales fire in a 30-foot cone. Each creature in that area must make a DC 17 Dexterity saving throw, taking 56 (16d6) fire damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"16d6"}]},{name:"Young Silver Dragon",size:"Large",type:"dragon",subtype:"",alignment:"lawful good",ac:18,hp:168,hit_dice:"16d10 + 80",speed:"40 ft., fly 80 ft.",stats:[23,10,21,14,11,19],saves:[{dexterity:4},{constitution:9},{wisdom:4},{charisma:8}],skillsaves:[{arcana:6},{history:6},{perception:8},{stealth:4}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 18",languages:"Common, Draconic",cr:"9",actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +10 to hit, reach 10 ft., one target. Hit: 17 (2d10 + 6) piercing damage.",attack_bonus:10,damage_dice:"2d10",damage_bonus:6},{name:"Claw",desc:"Melee Weapon Attack: +10 to hit, reach 5 ft., one target. Hit: 13 (2d6 + 6) slashing damage.",attack_bonus:10,damage_dice:"2d6",damage_bonus:6},{name:"Breath Weapons (Recharge 5-6)",desc:"The dragon uses one of the following breath weapons.\\nCold Breath. The dragon exhales an icy blast in a 30-foot cone. Each creature in that area must make a DC 17 Constitution saving throw, taking 54 (12d8) cold damage on a failed save, or half as much damage on a successful one.\\nParalyzing Breath. The dragon exhales paralyzing gas in a 30-foot cone. Each creature in that area must succeed on a DC 17 Constitution saving throw or be paralyzed for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.",attack_bonus:0,damage_dice:"12d8"}]},{name:"Young White Dragon",size:"Large",type:"dragon",subtype:"",alignment:"chaotic evil",ac:17,hp:133,hit_dice:"14d10 + 56",speed:"40 ft., burrow 20 ft., fly 80 ft., swim 40 ft.",stats:[18,10,18,6,11,12],saves:[{dexterity:3},{constitution:7},{wisdom:3},{charisma:4}],skillsaves:[{perception:6},{stealth:3}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"cold",condition_immunities:"",senses:"blindsight 30 ft., darkvision 120 ft., passive Perception 16",languages:"Common, Draconic",cr:"6",traits:[{name:"Ice Walk",desc:"The dragon can move across and climb icy surfaces without needing to make an ability check. Additionally, difficult terrain composed of ice or snow doesn't cost it extra moment.",attack_bonus:0}],actions:[{name:"Multiattack",desc:"The dragon makes three attacks: one with its bite and two with its claws.",attack_bonus:0},{name:"Bite",desc:"Melee Weapon Attack: +7 to hit, reach 10 ft., one target. Hit: 15 (2d10 + 4) piercing damage plus 4 (1d8) cold damage.",attack_bonus:7,damage_dice:"2d10 + 1d8",damage_bonus:4},{name:"Claw",desc:"Melee Weapon Attack: +7 to hit, reach 5 ft., one target. Hit: 11 (2d6 + 4) slashing damage.",attack_bonus:7,damage_dice:"2d6",damage_bonus:4},{name:"Cold Breath (Recharge 5-6)",desc:"The dragon exhales an icy blast in a 30-foot cone. Each creature in that area must make a DC 15 Constitution saving throw, taking 45 (10d8) cold damage on a failed save, or half as much damage on a successful one.",attack_bonus:0,damage_dice:"10d8"}]},{name:"Zombie",size:"Medium",type:"undead",subtype:"",alignment:"neutral evil",ac:8,hp:22,hit_dice:"3d8 + 8",speed:"20 ft.",stats:[13,6,16,3,6,5],saves:[{wisdom:0}],damage_vulnerabilities:"",damage_resistances:"",damage_immunities:"",condition_immunities:"poisoned",senses:"darkvision 60 ft., passive Perception 8",languages:"understands all languages it spoke in life but can't speak",cr:"1/4",traits:[{name:"Undead Fortitude",desc:"If damage reduces the zombie to 0 hit points, it must make a Constitution saving throw with a DC of 5+the damage taken, unless the damage is radiant or from a critical hit. On a success, the zombie drops to 1 hit point instead.",attack_bonus:0}],actions:[{name:"Slam",desc:"Melee Weapon Attack: +3 to hit, reach 5 ft., one target. Hit: 4 (1d6 + 1) bludgeoning damage.",attack_bonus:3,damage_dice:"1d6",damage_bonus:1}]}],Na=new Map(Cc.map(t=>[t.name,t]));var ka=require("obsidian");function Fa(t){return t[0].toUpperCase()+t.slice(1).toLowerCase()}function L(){return"xyxyxyxyxyxy".replace(/[xy]/g,function(t){var e=Math.random()*16|0,a=t=="x"?e:e&3|8;return a.toString(16)})}var _t=(t,e=0)=>{let a=[];if(e==5||!t||t==null)return"";if(typeof t=="string")return t;if(typeof t=="number")return`${t}`;if(Array.isArray(t))a.push(`(${t.map(n=>_t(n,e++)).join(" ")})`);else if(typeof t=="object")for(let n of Object.values(t))a.push(_t(n,e++));return a.join(" ")},ha=(t,e=0)=>{let a=[];if(e==5||!t||t==null)return"";if(typeof t=="string")return t;if(typeof t=="number")return`${t}`;if(Array.isArray(t))a.push(`${t.map(n=>ha(n,e++)).join(" ")}`);else if(typeof t=="object")for(let[n,i]of Object.entries(t))a.push(ha(n,e++),ha(i,e++));return a.join(" ")};function Kt(t=[],e=[]){t||(t=[]),e||(e=[]);for(let a of e??[])!a||(Array.isArray(a)?(t=t.filter(n=>n.name!=a[0]),t.push({name:a[0],desc:ha(a.slice(1))})):typeof a=="object"&&"name"in a&&"desc"in a&&(t=t.filter(n=>n.name!=a.name),t.push({name:a.name,desc:ha(a.desc)})));return t}var xc=[{type:"inline",id:L(),properties:[],hasRule:!0,nested:[{type:"group",id:L(),properties:["name","size","type","subtype","alignment"],nested:[{type:"heading",id:L(),properties:["name"],conditioned:!0},{type:"subheading",id:L(),properties:["size","type","subtype","alignment"],conditioned:!0}],conditioned:!0},{type:"image",id:L(),properties:["image"]}]},{type:"group",id:L(),properties:["ac","hp","speed"],nested:[{type:"property",id:L(),properties:["ac"],display:"Armor Class",conditioned:!0},{type:"property",id:L(),properties:["hp"],display:"Hit Points",dice:!0,diceProperty:"hit_dice",diceCallback:'return [{ text: monster["hit_dice"] }]',conditioned:!0},{type:"property",id:L(),display:"Speed",properties:["speed"],conditioned:!0}],hasRule:!0,conditioned:!0},{type:"table",id:L(),properties:["stats"],headers:["Str","Dex","Con","Int","Wis","Cha"],calculate:!0,hasRule:!0,conditioned:!0},{type:"table",id:L(),properties:["fage_stats"],headers:["Accuracy","Communication","Constitution","Dexterity","Fighting","Intelligence","Perception","Strength","Willpower"],calculate:!1,hasRule:!0,conditioned:!0},{type:"group",id:L(),properties:["saves","skillsaves","damage_immunities","damage_resistances","damage_vulnerabilities","condition_immunities","cr","languages","senses"],nested:[{type:"saves",id:L(),display:"Saves",properties:["saves"],conditioned:!0},{type:"saves",id:L(),display:"Skills",properties:["skillsaves"],conditioned:!0},{type:"property",id:L(),display:"Damage Resistances",properties:["damage_resistances"],conditioned:!0},{type:"property",id:L(),display:"Damage Immunities",properties:["damage_immunities"],conditioned:!0},{type:"property",id:L(),display:"Condition Immunities",properties:["condition_immunities"],conditioned:!0},{type:"property",id:L(),display:"Damage Vulnerabilities",properties:["damage_vulnerabilities"],conditioned:!0},{type:"property",id:L(),display:"Senses",properties:["senses"],conditioned:!0},{type:"property",id:L(),display:"Languages",properties:["languages"],fallback:"-"},{type:"inline",id:L(),properties:[],conditioned:!0,nested:[{type:"property",id:L(),display:"Challenge",properties:["cr"],callback:`const CR = {
"0": {
cr: "0",
value: 0,
xp: 0
},
"1/8": {
cr: "1/8",
value: 0.125,
xp: 25
},
"1/4": {
cr: "1/4",
value: 0.25,
xp: 50
},
"1/2": {
cr: "1/2",
value: 0.5,
xp: 100
},
"0.125": {
cr: "1/8",
value: 0.125,
xp: 25
},
"0.25": {
cr: "1/4",
value: 0.25,
xp: 50
},
"0.5": {
cr: "1/2",
value: 0.5,
xp: 100
},
"1": {
cr: "1",
value: 1,
xp: 200
},
"2": {
cr: "2",
value: 2,
xp: 450
},
"3": {
cr: "3",
value: 3,
xp: 700
},
"4": {
cr: "4",
value: 4,
xp: 1100
},
"5": {
cr: "5",
value: 5,
xp: 1800
},
"6": {
cr: "6",
value: 6,
xp: 2300
},
"7": {
cr: "7",
value: 7,
xp: 2900
},
"8": {
cr: "8",
value: 8,
xp: 3900
},
"9": {
cr: "9",
value: 9,
xp: 5000
},
"10": {
cr: "10",
value: 10,
xp: 5900
},
"11": {
cr: "11",
value: 11,
xp: 7200
},
"12": {
cr: "12",
value: 12,
xp: 8400
},
"13": {
cr: "13",
value: 13,
xp: 10000
},
"14": {
cr: "14",
value: 14,
xp: 11500
},
"15": {
cr: "15",
value: 15,
xp: 13000
},
"16": {
cr: "16",
value: 16,
xp: 15000
},
"17": {
cr: "17",
value: 17,
xp: 18000
},
"18": {
cr: "18",
value: 18,
xp: 20000
},
"19": {
cr: "19",
value: 19,
xp: 22000
},
"20": {
cr: "20",
value: 20,
xp: 25000
},
"21": {
cr: "21",
value: 21,
xp: 33000
},
"22": {
cr: "22",
value: 22,
xp: 41000
},
"23": {
cr: "23",
value: 23,
xp: 50000
},
"24": {
cr: "24",
value: 24,
xp: 62000
},
"25": {
cr: "25",
value: 25,
xp: 75000
},
"26": {
cr: "26",
value: 26,
xp: 90000
},
"27": {
cr: "27",
value: 27,
xp: 105000
},
"28": {
cr: "28",
value: 28,
xp: 120000
},
"29": {
cr: "29",
value: 29,
xp: 135000
},
"30": {
cr: "30",
value: 30,
xp: 155000
}
};
if ("cr" in monster && monster.cr in CR) {
return \`\${CR[
monster.cr
].cr} (\${CR[
monster.cr
].xp.toLocaleString()} XP)\`;
}
return "";`},{type:"property",id:L(),display:"Proficiency Bonus",properties:["cr"],callback:`const CR = {
"0": {
cr: "0",
value: 0,
xp: 0
},
"1/8": {
cr: "1/8",
value: 0.125,
xp: 25
},
"1/4": {
cr: "1/4",
value: 0.25,
xp: 50
},
"1/2": {
cr: "1/2",
value: 0.5,
xp: 100
},
"0.125": {
cr: "1/8",
value: 0.125,
xp: 25
},
"0.25": {
cr: "1/4",
value: 0.25,
xp: 50
},
"0.5": {
cr: "1/2",
value: 0.5,
xp: 100
},
"1": {
cr: "1",
value: 1,
xp: 200
},
"2": {
cr: "2",
value: 2,
xp: 450
},
"3": {
cr: "3",
value: 3,
xp: 700
},
"4": {
cr: "4",
value: 4,
xp: 1100
},
"5": {
cr: "5",
value: 5,
xp: 1800
},
"6": {
cr: "6",
value: 6,
xp: 2300
},
"7": {
cr: "7",
value: 7,
xp: 2900
},
"8": {
cr: "8",
value: 8,
xp: 3900
},
"9": {
cr: "9",
value: 9,
xp: 5000
},
"10": {
cr: "10",
value: 10,
xp: 5900
},
"11": {
cr: "11",
value: 11,
xp: 7200
},
"12": {
cr: "12",
value: 12,
xp: 8400
},
"13": {
cr: "13",
value: 13,
xp: 10000
},
"14": {
cr: "14",
value: 14,
xp: 11500
},
"15": {
cr: "15",
value: 15,
xp: 13000
},
"16": {
cr: "16",
value: 16,
xp: 15000
},
"17": {
cr: "17",
value: 17,
xp: 18000
},
"18": {
cr: "18",
value: 18,
xp: 20000
},
"19": {
cr: "19",
value: 19,
xp: 22000
},
"20": {
cr: "20",
value: 20,
xp: 25000
},
"21": {
cr: "21",
value: 21,
xp: 33000
},
"22": {
cr: "22",
value: 22,
xp: 41000
},
"23": {
cr: "23",
value: 23,
xp: 50000
},
"24": {
cr: "24",
value: 24,
xp: 62000
},
"25": {
cr: "25",
value: 25,
xp: 75000
},
"26": {
cr: "26",
value: 26,
xp: 90000
},
"27": {
cr: "27",
value: 27,
xp: 105000
},
"28": {
cr: "28",
value: 28,
xp: 120000
},
"29": {
cr: "29",
value: 29,
xp: 135000
},
"30": {
cr: "30",
value: 30,
xp: 155000
}
};
if ("cr" in monster && monster.cr in CR) {
return \`+\${Math.max(
Math.floor(2 + ((CR[monster.cr]?.value ?? 0) - 1) / 4),
2
)}\`;
}
return "";`}]}],conditioned:!0,hasRule:!0},{type:"traits",id:L(),properties:["traits"],conditioned:!0,dice:!0},{type:"spells",id:L(),properties:["spells"],conditioned:!0,dice:!0},{type:"traits",id:L(),properties:["actions"],heading:"Actions",conditioned:!0,dice:!0},{type:"traits",id:L(),properties:["bonus_actions"],heading:"Bonus Actions",conditioned:!0,dice:!0},{type:"traits",id:L(),properties:["legendary_actions"],heading:"Legendary Actions",conditioned:!0,dice:!0},{type:"traits",id:L(),properties:["reactions"],heading:"Reactions",conditioned:!0,dice:!0},{type:"traits",id:L(),properties:["lair_actions"],heading:"Lair Actions",conditioned:!0,dice:!0}],Ve={blocks:xc,name:"Basic 5e Layout"};var Wo=require("obsidian");function P(){}var Ms=t=>t;function Ac(t){return t&&typeof t=="object"&&typeof t.then=="function"}function $n(t){return t()}function Ds(){return Object.create(null)}function fe(t){t.forEach($n)}function et(t){return typeof t=="function"}function j(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var La;function Ss(t,e){return La||(La=document.createElement("a")),La.href=e,t===La.href}function Es(t){return Object.keys(t).length===0}function Is(t){return t??""}function te(t){return t&&et(t.destroy)?t.destroy:P}var Ps=typeof window<"u",Dc=Ps?()=>window.performance.now():()=>Date.now(),Gn=Ps?t=>requestAnimationFrame(t):P;var Yt=new Set;function Ws(t){Yt.forEach(e=>{e.c(t)||(Yt.delete(e),e.f())}),Yt.size!==0&&Gn(Ws)}function Mc(t){let e;return Yt.size===0&&Gn(Ws),{promise:new Promise(a=>{Yt.add(e={c:t,f:a})}),abort(){Yt.delete(e)}}}var Hs=!1;function Sc(){Hs=!0}function Ec(){Hs=!1}function x(t,e){t.appendChild(e)}function Y(t,e,a){let n=qn(t);if(!n.getElementById(e)){let i=C("style");i.id=e,i.textContent=a,Os(n,i)}}function qn(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ic(t){let e=C("style");return Os(qn(t),e),e.sheet}function Os(t,e){x(t.head||t,e)}function S(t,e,a){t.insertBefore(e,a||null)}function M(t){t.parentNode.removeChild(t)}function tt(t,e){for(let a=0;a<t.length;a+=1)t[a]&&t[a].d(e)}function C(t){return document.createElement(t)}function J(t){return document.createTextNode(t)}function $(){return J(" ")}function oe(){return J("")}function Ee(t,e,a,n){return t.addEventListener(e,a,n),()=>t.removeEventListener(e,a,n)}function A(t,e,a){a==null?t.removeAttribute(e):t.getAttribute(e)!==a&&t.setAttribute(e,a)}function Pc(t){return Array.from(t.childNodes)}function me(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Un(t,e,a,n){a===null?t.style.removeProperty(e):t.style.setProperty(e,a,n?"important":"")}function $e(t,e,a){t.classList[a?"add":"remove"](e)}function Wc(t,e,{bubbles:a=!1,cancelable:n=!1}={}){let i=document.createEvent("CustomEvent");return i.initCustomEvent(t,a,n,e),i}var qa=new Map,Ua=0;function Hc(t){let e=5381,a=t.length;for(;a--;)e=(e<<5)-e^t.charCodeAt(a);return e>>>0}function Oc(t,e){let a={stylesheet:Ic(e),rules:{}};return qa.set(t,a),a}function Rc(t,e,a,n,i,s,o,r=0){let c=16.666/n,d=`{
`;for(let y=0;y<=1;y+=c){let _=e+(a-e)*s(y);d+=y*100+`%{${o(_,1-_)}}
`}let l=d+`100% {${o(a,1-a)}}
}`,m=`__svelte_${Hc(l)}_${r}`,u=qn(t),{stylesheet:h,rules:f}=qa.get(u)||Oc(u,t);f[m]||(f[m]=!0,h.insertRule(`@keyframes ${m} ${l}`,h.cssRules.length));let b=t.style.animation||"";return t.style.animation=`${b?`${b}, `:""}${m} ${n}ms linear ${i}ms 1 both`,Ua+=1,m}function Bc(t,e){let a=(t.style.animation||"").split(", "),n=a.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),i=a.length-n.length;i&&(t.style.animation=n.join(", "),Ua-=i,Ua||zc())}function zc(){Gn(()=>{Ua||(qa.forEach(t=>{let{stylesheet:e}=t,a=e.cssRules.length;for(;a--;)e.deleteRule(a);t.rules={}}),qa.clear())})}function Va(t,e,a,n){if(!e)return P;let i=t.getBoundingClientRect();if(e.left===i.left&&e.right===i.right&&e.top===i.top&&e.bottom===i.bottom)return P;let{delay:s=0,duration:o=300,easing:r=Ms,start:c=Dc()+s,end:d=c+o,tick:l=P,css:m}=a(t,{from:e,to:i},n),u=!0,h=!1,f;function b(){m&&(f=Rc(t,0,1,o,s,r,m)),s||(h=!0)}function y(){m&&Bc(t,f),u=!1}return Mc(_=>{if(!h&&_>=c&&(h=!0),h&&_>=d&&(l(1,0),y()),!u)return!1;if(h){let D=_-c,I=0+1*r(D/o);l(I,1-I)}return!0}),b(),l(0,1),y}function Ka(t){let e=getComputedStyle(t);if(e.position!=="absolute"&&e.position!=="fixed"){let{width:a,height:n}=e,i=t.getBoundingClientRect();t.style.position="absolute",t.style.width=a,t.style.height=n,Nc(t,i)}}function Nc(t,e){let a=t.getBoundingClientRect();if(e.left!==a.left||e.top!==a.top){let n=getComputedStyle(t),i=n.transform==="none"?"":n.transform;t.style.transform=`${i} translate(${e.left-a.left}px, ${e.top-a.top}px)`}}var pa;function mt(t){pa=t}function Pt(){if(!pa)throw new Error("Function called outside component initialization");return pa}function fa(t){Pt().$$.on_mount.push(t)}function Vn(t){Pt().$$.on_destroy.push(t)}function ze(){let t=Pt();return(e,a,{cancelable:n=!1}={})=>{let i=t.$$.callbacks[e];if(i){let s=Wc(e,a,{cancelable:n});return i.slice().forEach(o=>{o.call(t,s)}),!s.defaultPrevented}return!0}}function ht(t,e){return Pt().$$.context.set(t,e),e}function be(t){return Pt().$$.context.get(t)}function Kn(){return Pt().$$.context}function Yn(t,e){let a=t.$$.callbacks[e.type];a&&a.slice().forEach(n=>n.call(this,e))}var ga=[];var Qe=[],$a=[],Fn=[],Fc=Promise.resolve(),Ln=!1;function Lc(){Ln||(Ln=!0,Fc.then(Zn))}function jn(t){$a.push(t)}function Xn(t){Fn.push(t)}var Nn=new Set,ja=0;function Zn(){let t=pa;do{for(;ja<ga.length;){let e=ga[ja];ja++,mt(e),jc(e.$$)}for(mt(null),ga.length=0,ja=0;Qe.length;)Qe.pop()();for(let e=0;e<$a.length;e+=1){let a=$a[e];Nn.has(a)||(Nn.add(a),a())}$a.length=0}while(ga.length);for(;Fn.length;)Fn.pop()();Ln=!1,Nn.clear(),mt(t)}function jc(t){if(t.fragment!==null){t.update(),fe(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(jn)}}var Ga=new Set,It;function de(){It={r:0,c:[],p:It}}function le(){It.r||fe(It.c),It=It.p}function B(t,e){t&&t.i&&(Ga.delete(t),t.i(e))}function F(t,e,a,n){if(t&&t.o){if(Ga.has(t))return;Ga.add(t),It.c.push(()=>{Ga.delete(t),n&&(a&&t.d(1),n())}),t.o(e)}}function Rs(t,e){let a=e.token={};function n(i,s,o,r){if(e.token!==a)return;e.resolved=r;let c=e.ctx;o!==void 0&&(c=c.slice(),c[o]=r);let d=i&&(e.current=i)(c),l=!1;e.block&&(e.blocks?e.blocks.forEach((m,u)=>{u!==s&&m&&(de(),F(m,1,1,()=>{e.blocks[u]===m&&(e.blocks[u]=null)}),le())}):e.block.d(1),d.c(),B(d,1),d.m(e.mount(),e.anchor),l=!0),e.block=d,e.blocks&&(e.blocks[s]=d),l&&Zn()}if(Ac(t)){let i=Pt();if(t.then(s=>{mt(i),n(e.then,1,e.value,s),mt(null)},s=>{if(mt(i),n(e.catch,2,e.error,s),mt(null),!e.hasCatch)throw s}),e.current!==e.pending)return n(e.pending,0),!0}else{if(e.current!==e.then)return n(e.then,1,e.value,t),!0;e.resolved=t}}function Bs(t,e,a){let n=e.slice(),{resolved:i}=t;t.current===t.then&&(n[t.value]=i),t.current===t.catch&&(n[t.error]=i),t.block.p(n,a)}var Sm=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function $c(t,e){t.d(1),e.delete(t.key)}function Gc(t,e){F(t,1,1,()=>{e.delete(t.key)})}function zs(t,e){t.f(),$c(t,e)}function Ns(t,e){t.f(),Gc(t,e)}function Ya(t,e,a,n,i,s,o,r,c,d,l,m){let u=t.length,h=s.length,f=u,b={};for(;f--;)b[t[f].key]=f;let y=[],_=new Map,D=new Map;for(f=h;f--;){let g=m(i,s,f),p=a(g),v=o.get(p);v?n&&v.p(g,e):(v=d(p,g),v.c()),_.set(p,y[f]=v),p in b&&D.set(p,Math.abs(f-b[p]))}let I=new Set,T=new Set;function k(g){B(g,1),g.m(r,l),o.set(g.key,g),l=g.first,h--}for(;u&&h;){let g=y[h-1],p=t[u-1],v=g.key,E=p.key;g===p?(l=g.first,u--,h--):_.has(E)?!o.has(v)||I.has(v)?k(g):T.has(E)?u--:D.get(v)>D.get(E)?(T.add(v),k(g)):(I.add(E),u--):(c(p,o),u--)}for(;u--;){let g=t[u];_.has(g.key)||c(g,o)}for(;h;)k(y[h-1]);return y}function Jn(t,e,a){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=a,a(t.$$.ctx[n]))}function se(t){t&&t.c()}function ne(t,e,a,n){let{fragment:i,on_mount:s,on_destroy:o,after_update:r}=t.$$;i&&i.m(e,a),n||jn(()=>{let c=s.map($n).filter(et);o?o.push(...c):fe(c),t.$$.on_mount=[]}),r.forEach(jn)}function ae(t,e){let a=t.$$;a.fragment!==null&&(fe(a.on_destroy),a.fragment&&a.fragment.d(e),a.on_destroy=a.fragment=null,a.ctx=[])}function qc(t,e){t.$$.dirty[0]===-1&&(ga.push(t),Lc(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,a,n,i,s,o,r=[-1]){let c=pa;mt(t);let d=t.$$={fragment:null,ctx:null,props:s,update:P,not_equal:i,bound:Ds(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Ds(),dirty:r,skip_bound:!1,root:e.target||c.$$.root};o&&o(d.root);let l=!1;if(d.ctx=a?a(t,e.props||{},(m,u,...h)=>{let f=h.length?h[0]:u;return d.ctx&&i(d.ctx[m],d.ctx[m]=f)&&(!d.skip_bound&&d.bound[m]&&d.bound[m](f),l&&qc(t,m)),u}):[],d.update(),l=!0,fe(d.before_update),d.fragment=n?n(d.ctx):!1,e.target){if(e.hydrate){Sc();let m=Pc(e.target);d.fragment&&d.fragment.l(m),m.forEach(M)}else d.fragment&&d.fragment.c();e.intro&&B(t.$$.fragment),ne(t,e.target,e.anchor,e.customElement),Ec(),Zn()}mt(c)}var Uc;typeof HTMLElement=="function"&&(Uc=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:t}=this.$$;this.$$.on_disconnect=t.map($n).filter(et);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(t,e,a){this[t]=a}disconnectedCallback(){fe(this.$$.on_disconnect)}$destroy(){ae(this,1),this.$destroy=P}$on(t,e){let a=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return a.push(e),()=>{let n=a.indexOf(e);n!==-1&&a.splice(n,1)}}$set(t){this.$$set&&!Es(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var q=class{$destroy(){ae(this,1),this.$destroy=P}$on(e,a){let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(a),()=>{let i=n.indexOf(a);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!Es(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Zt=require("obsidian");var Fs='<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="save" class="svg-inline--fa fa-save fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"></path></svg>',Xa="statblock-save",Ls='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="download" class="svg-inline--fa fa-download fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"/></svg>',Za="statblock-export-as-png";var Xt=[];function js(t,e=P){let a,n=new Set;function i(r){if(j(t,r)&&(t=r,a)){let c=!Xt.length;for(let d of n)d[1](),Xt.push(d,t);if(c){for(let d=0;d<Xt.length;d+=2)Xt[d][0](Xt[d+1]);Xt.length=0}}}function s(r){i(r(t))}function o(r,c=P){let d=[r,c];return n.add(d),n.size===1&&(a=e(i)||P),r(t),()=>{n.delete(d),n.size===0&&(a(),a=null)}}return{set:i,update:s,subscribe:o}}function Vc(t){Y(t,"svelte-1g1j5xk",".bar.svelte-1g1j5xk{height:5px;background:var(--statblock-bar-color);border:1px solid #000;z-index:1;width:auto}")}function Kc(t){let e;return{c(){e=C("div"),A(e,"class","bar svelte-1g1j5xk")},m(a,n){S(a,e,n)},p:P,i:P,o:P,d(a){a&&M(e)}}}var Qn=class extends q{constructor(e){super(),U(this,e,null,Kc,j,{},Vc)}},ei=Qn;var Ks=require("obsidian");function Yc(t){Y(t,"svelte-rmxhsz",".roller-result.svelte-rmxhsz{font-weight:700}")}function Xc(t){let e,a,n,i,s,o,r=(typeof t[1]=="number"||t[1]&&t[1].length)&&$s(t);return{c(){e=C("span"),n=$(),r&&r.c(),i=oe(),A(e,"class","roller-result svelte-rmxhsz")},m(c,d){S(c,e,d),S(c,n,d),r&&r.m(c,d),S(c,i,d),s||(o=te(a=t[4].call(null,e)),s=!0)},p(c,d){typeof c[1]=="number"||c[1]&&c[1].length?r?r.p(c,d):(r=$s(c),r.c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},d(c){c&&M(e),c&&M(n),r&&r.d(c),c&&M(i),s=!1,o()}}}function Zc(t){let e;return{c(){e=J(t[0])},m(a,n){S(a,e,n)},p(a,n){n&1&&me(e,a[0])},d(a){a&&M(e)}}}function $s(t){let e,a,n,i;return{c(){e=C("span"),a=J("("),n=J(t[1]),i=J(")"),A(e,"class","dice-original")},m(s,o){S(s,e,o),x(e,a),x(e,n),x(e,i)},p(s,o){o&2&&me(n,s[1])},d(s){s&&M(e)}}}function Gs(t){let e;function a(s,o){return s[2]||!s[3]?Zc:Xc}let n=a(t,-1),i=n(t);return{c(){i.c(),e=oe()},m(s,o){i.m(s,o),S(s,e,o)},p(s,o){n===(n=a(s,o))&&i?i.p(s,o):(i.d(1),i=n(s),i&&(i.c(),i.m(e.parentNode,e)))},d(s){i.d(s),s&&M(e)}}}function Jc(t){let e=t[2],a,n=Gs(t);return{c(){n.c(),a=oe()},m(i,s){n.m(i,s),S(i,a,s)},p(i,[s]){s&4&&j(e,e=i[2])?(n.d(1),n=Gs(i),n.c(),n.m(a.parentNode,a)):n.p(i,s)},i:P,o:P,d(i){i&&M(a),n.d(i)}}}function Qc(t,e,a){let{text:n}=e,{original:i=n}=e,s=be("dice"),o=be("plugin"),r=be("render");be("reset").subscribe(async h=>{h&&await d.applyResult({type:"dice",result:m,tooltip:"Average"})});let d=null,l=!1;if(!d&&s)try{d=o.getRoller(`${n}`)}catch(h){console.error(h),l=!0}let m=0;fa(async()=>{if(d)try{await d.roll(),m=d.dice.reduce((h,f)=>h+(f.static?f.result:Math.ceil((f.faces.min+f.faces.max)/2*f.rolls)),0),await d.applyResult({type:"dice",result:m,tooltip:"Average"}),d.shouldRender=r}catch{a(2,l=!0)}});let u=h=>{!d||!d.containerEl?h.setText(`${i}`):h.appendChild(d.containerEl)};return t.$$set=h=>{"text"in h&&a(0,n=h.text),"original"in h&&a(1,i=h.original)},[n,i,l,s,u]}var ti=class extends q{constructor(e){super(),U(this,e,Qc,Jc,j,{text:0,original:1},Yc)}},qs=ti;function ed(t){Y(t,"svelte-9xkcir",".property-text.svelte-9xkcir{display:inline;margin:0}")}function Us(t,e,a){let n=t.slice();return n[6]=e[a],n}function td(t){let e,a,n=t[1],i=[];for(let o=0;o<n.length;o+=1)i[o]=Vs(Us(t,n,o));let s=o=>F(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=oe()},m(o,r){for(let c=0;c<i.length;c+=1)i[c].m(o,r);S(o,e,r),a=!0},p(o,r){if(r&3){n=o[1];let c;for(c=0;c<n.length;c+=1){let d=Us(o,n,c);i[c]?(i[c].p(d,r),B(i[c],1)):(i[c]=Vs(d),i[c].c(),B(i[c],1),i[c].m(e.parentNode,e))}for(de(),c=n.length;c<i.length;c+=1)s(c);le()}},i(o){if(!a){for(let r=0;r<n.length;r+=1)B(i[r]);a=!0}},o(o){i=i.filter(Boolean);for(let r=0;r<i.length;r+=1)F(i[r]);a=!1},d(o){tt(i,o),o&&M(e)}}}function ad(t){let e,a;return{c(){e=C("span"),a=J(t[0]),A(e,"class","property-text svelte-9xkcir")},m(n,i){S(n,e,i),x(e,a)},p(n,i){i&1&&me(a,n[0])},i:P,o:P,d(n){n&&M(e)}}}function nd(t){let e,a=t[6]+"",n;return{c(){e=C("span"),n=J(a),A(e,"class","property-text svelte-9xkcir")},m(i,s){S(i,e,s),x(e,n)},p(i,s){s&2&&a!==(a=i[6]+"")&&me(n,a)},i:P,o:P,d(i){i&&M(e)}}}function id(t){let e,a;return e=new qs({props:{text:t[6]?.text??t[0],original:t[6]?.original??t[6]?.text??t[0]}}),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p(n,i){let s={};i&3&&(s.text=n[6]?.text??n[0]),i&3&&(s.original=n[6]?.original??n[6]?.text??n[0]),e.$set(s)},i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function Vs(t){let e,a,n,i,s=[id,nd],o=[];function r(c,d){return typeof c[6]!="string"&&typeof c[6]=="object"&&"text"in c[6]?0:1}return e=r(t,-1),a=o[e]=s[e](t),{c(){a.c(),n=oe()},m(c,d){o[e].m(c,d),S(c,n,d),i=!0},p(c,d){let l=e;e=r(c,d),e===l?o[e].p(c,d):(de(),F(o[l],1,1,()=>{o[l]=null}),le(),a=o[e],a?a.p(c,d):(a=o[e]=s[e](c),a.c()),B(a,1),a.m(n.parentNode,n))},i(c){i||(B(a),i=!0)},o(c){F(a),i=!1},d(c){o[e].d(c),c&&M(n)}}}function sd(t){let e,a,n,i,s=[ad,td],o=[];function r(c,d){return c[2]?1:0}return e=r(t,-1),a=o[e]=s[e](t),{c(){a.c(),n=oe()},m(c,d){o[e].m(c,d),S(c,n,d),i=!0},p(c,[d]){a.p(c,d)},i(c){i||(B(a),i=!0)},o(c){F(a),i=!1},d(c){o[e].d(c),c&&M(n)}}}function od(t,e,a){let{property:n}=e,i=be("item"),s=be("dice")&&i.dice,o=be("monster"),r=be("plugin"),c=[n];if(s)if(i.diceProperty&&i.diceProperty in o&&typeof o[i.diceProperty]=="string")c=[{text:o[i.diceProperty]}];else if(i.diceCallback)try{let d=document.body.createEl("iframe"),l=d.contentWindow.Function,u=new l("monster","property",i.diceCallback).call(void 0,o,n)??n;document.body.removeChild(d),Array.isArray(u)?c=u:c=[u]}catch(d){new Ks.Notice(`There was an error executing the provided dice callback for [${i.properties.join(", ")}]
${d.message}`),console.error(d)}else{let d=r.parseForDice(n);Array.isArray(d)?c=d:c=[d]}return t.$$set=d=>{"property"in d&&a(0,n=d.property)},[n,c,s]}var ai=class extends q{constructor(e){super(),U(this,e,od,sd,j,{property:0},ed)}},Ys=ai;var Xs=require("obsidian");function rd(t){Y(t,"svelte-4lp5jt",".statblock-markdown.svelte-4lp5jt{display:inline}.statblock-markdown.svelte-4lp5jt p{display:inline}")}function cd(t){let e,a,n,i;return{c(){e=C("div"),A(e,"class","statblock-markdown svelte-4lp5jt")},m(s,o){S(s,e,o),n||(i=te(a=t[0].call(null,e)),n=!0)},p:P,i:P,o:P,d(s){s&&M(e),n=!1,i()}}}function dd(t,e,a){let{property:n}=e,i=be("context"),s=be("renderer"),o=r=>{Xs.MarkdownRenderer.renderMarkdown(n,r,i,s)};return t.$$set=r=>{"property"in r&&a(1,n=r.property)},[o,n]}var ni=class extends q{constructor(e){super(),U(this,e,dd,cd,j,{property:1},rd)}},Zs=ni;function ld(t){let e,a;return e=new Ys({props:{property:t[0]}}),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p(n,i){let s={};i&1&&(s.property=n[0]),e.$set(s)},i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function ud(t){let e,a;return e=new Zs({props:{property:t[0]}}),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p(n,i){let s={};i&1&&(s.property=n[0]),e.$set(s)},i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function md(t){let e,a,n,i,s=[ud,ld],o=[];function r(c,d){return c[1]?0:1}return e=r(t,-1),a=o[e]=s[e](t),{c(){a.c(),n=oe()},m(c,d){o[e].m(c,d),S(c,n,d),i=!0},p(c,[d]){let l=e;e=r(c,d),e===l?o[e].p(c,d):(de(),F(o[l],1,1,()=>{o[l]=null}),le(),a=o[e],a?a.p(c,d):(a=o[e]=s[e](c),a.c()),B(a,1),a.m(n.parentNode,n))},i(c){i||(B(a),i=!0)},o(c){F(a),i=!1},d(c){o[e].d(c),c&&M(n)}}}function hd(t,e,a){let{property:n}=e,{render:i=!1}=e;return t.$$set=s=>{"property"in s&&a(0,n=s.property),"render"in s&&a(1,i=s.render)},[n,i]}var ii=class extends q{constructor(e){super(),U(this,e,hd,md,j,{property:0,render:1})}},kt=ii;function gd(t){Y(t,"svelte-oskcir",".property-text.svelte-oskcir{display:inline;white-space:pre-line;text-indent:0}.property-name.svelte-oskcir{margin:0;margin-right:0.25em;display:inline;font-weight:bold;font-style:italic}")}function Js(t){let e,a;return{c(){e=C("div"),a=J(t[0]),A(e,"class","property-name svelte-oskcir")},m(n,i){S(n,e,i),x(e,a)},p(n,i){i&1&&me(a,n[0])},d(n){n&&M(e)}}}function pd(t){let e,a,n,i,s,o=t[0]&&Js(t);return i=new kt({props:{render:t[2],property:t[1]}}),{c(){e=C("div"),o&&o.c(),a=$(),n=C("div"),se(i.$$.fragment),A(n,"class","property-text svelte-oskcir"),A(e,"class","property")},m(r,c){S(r,e,c),o&&o.m(e,null),x(e,a),x(e,n),ne(i,n,null),s=!0},p(r,[c]){r[0]?o?o.p(r,c):(o=Js(r),o.c(),o.m(e,a)):o&&(o.d(1),o=null);let d={};c&4&&(d.render=r[2]),c&2&&(d.property=r[1]),i.$set(d)},i(r){s||(B(i.$$.fragment,r),s=!0)},o(r){F(i.$$.fragment,r),s=!1},d(r){r&&M(e),o&&o.d(),ae(i)}}}function fd(t,e,a){let{name:n}=e,{desc:i}=e,{render:s=!1}=e;return t.$$set=o=>{"name"in o&&a(0,n=o.name),"desc"in o&&a(1,i=o.desc),"render"in o&&a(2,s=o.render)},[n,i,s]}var si=class extends q{constructor(e){super(),U(this,e,fd,pd,j,{name:0,desc:1,render:2},gd)}},ba=si;var no=require("obsidian");function bd(t){Y(t,"svelte-nhjtjx",".spell-line.svelte-nhjtjx .spells.svelte-nhjtjx{font-style:italic}")}function Qs(t,e,a){let n=t.slice();return n[3]=e[a],n[5]=a,n}function eo(t,e,a){let n=t.slice();return n[6]=e[a],n[8]=a,n}function _d(t){let e,a;return e=new ba({props:{name:"",desc:t[3].header}}),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p:P,i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function kd(t){let e,a;return e=new ba({props:{name:"Spellcasting",desc:t[3].header}}),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p:P,i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function vd(t){let e,a,n=t[6].split(":").shift()+"",i,s,o,r,c=t[6].split(":").pop()+"",d;return{c(){e=C("li"),a=C("span"),i=J(n),s=J(":"),o=$(),r=C("span"),d=J(c),A(a,"class","spell-level"),A(r,"class","spells svelte-nhjtjx"),A(e,"class","spell-line svelte-nhjtjx")},m(l,m){S(l,e,m),x(e,a),x(a,i),x(a,s),x(e,o),x(e,r),x(r,d)},p:P,d(l){l&&M(e)}}}function yd(t){let e,a=t[6]+"",n;return{c(){e=C("span"),n=J(a),A(e,"class","spell-line")},m(i,s){S(i,e,s),x(e,n)},p:P,d(i){i&&M(e)}}}function to(t){let e,a;function n(o,r){return o[6].includes(":")?vd:yd}let s=n(t,-1)(t);return{c(){s.c(),a=oe()},m(o,r){s.m(o,r),S(o,a,r)},p(o,r){s.p(o,r)},d(o){s.d(o),o&&M(a)}}}function ao(t){let e,a,n,i,s,o,r=[kd,_d],c=[];function d(u,h){return u[5]===0?0:1}e=d(t,-1),a=c[e]=r[e](t);let l=t[3].spells,m=[];for(let u=0;u<l.length;u+=1)m[u]=to(eo(t,l,u));return{c(){a.c(),n=$(),i=C("ul");for(let u=0;u<m.length;u+=1)m[u].c();s=$(),A(i,"class","spell-list")},m(u,h){c[e].m(u,h),S(u,n,h),S(u,i,h);for(let f=0;f<m.length;f+=1)m[f].m(i,null);x(i,s),o=!0},p(u,h){if(a.p(u,h),h&1){l=u[3].spells;let f;for(f=0;f<l.length;f+=1){let b=eo(u,l,f);m[f]?m[f].p(b,h):(m[f]=to(b),m[f].c(),m[f].m(i,s))}for(;f<m.length;f+=1)m[f].d(1);m.length=l.length}},i(u){o||(B(a),o=!0)},o(u){F(a),o=!1},d(u){c[e].d(u),u&&M(n),u&&M(i),tt(m,u)}}}function wd(t){let e,a,n=t[0],i=[];for(let o=0;o<n.length;o+=1)i[o]=ao(Qs(t,n,o));let s=o=>F(i[o],1,1,()=>{i[o]=null});return{c(){e=C("div");for(let o=0;o<i.length;o+=1)i[o].c();A(e,"class","spellcasting")},m(o,r){S(o,e,r);for(let c=0;c<i.length;c+=1)i[c].m(e,null);a=!0},p(o,[r]){if(r&1){n=o[0];let c;for(c=0;c<n.length;c+=1){let d=Qs(o,n,c);i[c]?(i[c].p(d,r),B(i[c],1)):(i[c]=ao(d),i[c].c(),B(i[c],1),i[c].m(e,null))}for(de(),c=n.length;c<i.length;c+=1)s(c);le()}},i(o){if(!a){for(let r=0;r<n.length;r+=1)B(i[r]);a=!0}},o(o){i=i.filter(Boolean);for(let r=0;r<i.length;r+=1)F(i[r]);a=!1},d(o){o&&M(e),tt(i,o)}}}function Td(t,e,a){let{monster:n}=e,i=o=>/[^a-zA-Z0-9]$/.test(o)?o:`${o}:`,s=n.spells.reduce((o,r)=>{if(typeof r=="string"&&(r.charAt(r.length-1)==":"||!r.includes(":"))){let l={header:i(r),spells:[]};return o.push(l),o}let c=o[o.length-1],d=typeof r=="string"?r:(0,no.stringifyYaml)(r);if(c)c.spells.push(d);else{let l={header:`${n.name} knows the following spells:`,spells:[d]};o.push(l)}return o},[]);return t.$$set=o=>{"monster"in o&&a(1,n=o.monster)},[s,n]}var oi=class extends q{constructor(e){super(),U(this,e,Td,wd,j,{monster:1},bd)}},io=oi;function Cd(t){Y(t,"svelte-v0iiew",`.flex-container.svelte-v0iiew{display:flex;justify-content:space-between;align-items:center}.heading.svelte-v0iiew{font-family:"Libre Baskerville", "Lora", "Calisto MT",
"Bookman Old Style", Bookman, "Goudy Old Style", Garamond,
"Hoefler Text", "Bitstream Charter", Georgia, serif;color:var(--statblock-primary-color);font-weight:700;margin:0px;font-size:23px;letter-spacing:1px;font-variant:small-caps;display:flex;justify-content:space-between;align-items:center}`)}function so(t,e,a){let n=t.slice();return n[2]=e[a],n}function oo(t){let e,a=t[0][t[2]]+"",n;return{c(){e=C("div"),n=J(a),A(e,"class","heading svelte-v0iiew")},m(i,s){S(i,e,s),x(e,n)},p(i,s){s&3&&a!==(a=i[0][i[2]]+"")&&me(n,a)},d(i){i&&M(e)}}}function ro(t){let e,a=t[2]in t[0]&&oo(t);return{c(){a&&a.c(),e=oe()},m(n,i){a&&a.m(n,i),S(n,e,i)},p(n,i){n[2]in n[0]?a?a.p(n,i):(a=oo(n),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},d(n){a&&a.d(n),n&&M(e)}}}function xd(t){let e,a=t[1].properties,n=[];for(let i=0;i<a.length;i+=1)n[i]=ro(so(t,a,i));return{c(){e=C("div");for(let i=0;i<n.length;i+=1)n[i].c();A(e,"class","flex-container svelte-v0iiew")},m(i,s){S(i,e,s);for(let o=0;o<n.length;o+=1)n[o].m(e,null)},p(i,[s]){if(s&3){a=i[1].properties;let o;for(o=0;o<a.length;o+=1){let r=so(i,a,o);n[o]?n[o].p(r,s):(n[o]=ro(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=a.length}},i:P,o:P,d(i){i&&M(e),tt(n,i)}}}function Ad(t,e,a){let{monster:n}=e,{item:i}=e;return t.$$set=s=>{"monster"in s&&a(0,n=s.monster),"item"in s&&a(1,i=s.item)},[n,i]}var ri=class extends q{constructor(e){super(),U(this,e,Ad,xd,j,{monster:0,item:1},Cd)}},co=ri;var uo=require("obsidian");function Dd(t){Y(t,"svelte-18djcuw",".line.svelte-18djcuw{line-height:1.4;display:block;color:var(--statblock-primary-color)}.property-name.svelte-18djcuw{margin:0;margin-right:0.25em;display:inline;font-weight:bold}")}function lo(t){let e,a,n,i,s;return i=new kt({props:{render:t[0].markdown,property:t[1]}}),{c(){e=C("div"),a=C("span"),a.textContent=`${t[2]}`,n=$(),se(i.$$.fragment),A(a,"class","property-name svelte-18djcuw"),A(e,"class","line svelte-18djcuw")},m(o,r){S(o,e,r),x(e,a),x(e,n),ne(i,e,null),s=!0},p(o,r){let c={};r&1&&(c.render=o[0].markdown),r&2&&(c.property=o[1]),i.$set(c)},i(o){s||(B(i.$$.fragment,o),s=!0)},o(o){F(i.$$.fragment,o),s=!1},d(o){o&&M(e),ae(i)}}}function Md(t){let e,a,n=(!t[0].conditioned||t[0].conditioned&&`${t[1]}`.length)&&lo(t);return{c(){n&&n.c(),e=oe()},m(i,s){n&&n.m(i,s),S(i,e,s),a=!0},p(i,[s]){!i[0].conditioned||i[0].conditioned&&`${i[1]}`.length?n?(n.p(i,s),s&3&&B(n,1)):(n=lo(i),n.c(),B(n,1),n.m(e.parentNode,e)):n&&(de(),F(n,1,1,()=>{n=null}),le())},i(i){a||(B(n),a=!0)},o(i){F(n),a=!1},d(i){n&&n.d(i),i&&M(e)}}}function Sd(t,e,a){let{monster:n}=e,{item:i}=e,s=_t(n[i.properties[0]]),o=i.display??i.properties[0];if(i.callback)try{let r=document.body.createEl("iframe"),c=r.contentWindow.Function;s=new c("monster",i.callback).call(void 0,n)??s,document.body.removeChild(r)}catch(r){new uo.Notice(`There was an error executing the provided callback for [${i.properties.join(", ")}]
${r.message}`),console.error(r)}return!i.conditioned&&!`${s}`.length&&(s=i.fallback??"-"),t.$$set=r=>{"monster"in r&&a(3,n=r.monster),"item"in r&&a(0,i=r.item)},[i,s,o,n]}var ci=class extends q{constructor(e){super(),U(this,e,Sd,Md,j,{monster:3,item:0},Dd)}},mo=ci;function Ed(t){Y(t,"svelte-sujd32",`.tapered-rule.svelte-sujd32{width:auto;margin:0.5em 0;height:5px;background:-webkit-linear-gradient(
0deg,
var(--statblock-rule-color) 0%,
var(--statblock-rule-color) 50%,
var(--statblock-background-color) 95%,
var(--statblock-background-color) 100%
);clip-path:polygon(0 0, 0 100%, 95% 50%);-webkit-clip-path:polygon(0 0, 0 100%, 95% 50%)}`)}function Id(t){let e;return{c(){e=C("div"),A(e,"class","tapered-rule svelte-sujd32")},m(a,n){S(a,e,n)},p:P,i:P,o:P,d(a){a&&M(e)}}}var di=class extends q{constructor(e){super(),U(this,e,null,Id,j,{},Ed)}},Ja=di;function Pd(t){Y(t,"svelte-1ey5nbe",".line.svelte-1ey5nbe{line-height:1.4;display:block;color:var(--statblock-primary-color)}.property-name.svelte-1ey5nbe{margin:0;margin-right:0.25em;display:inline;font-weight:bold}.property-text.svelte-1ey5nbe{display:inline;margin:0}")}function Wd(t){let e,a,n,i=(t[0].display??Fa(t[0].properties[0]))+"",s,o,r,c,d;return c=new kt({props:{render:t[0].markdown,property:t[1]}}),{c(){e=C("div"),a=C("div"),n=C("span"),s=J(i),o=$(),r=C("div"),se(c.$$.fragment),A(n,"class","property-name svelte-1ey5nbe"),A(r,"class","property-text svelte-1ey5nbe"),A(a,"class","line svelte-1ey5nbe"),A(e,"class","info")},m(l,m){S(l,e,m),x(e,a),x(a,n),x(n,s),x(a,o),x(a,r),ne(c,r,null),d=!0},p(l,[m]){(!d||m&1)&&i!==(i=(l[0].display??Fa(l[0].properties[0]))+"")&&me(s,i);let u={};m&1&&(u.render=l[0].markdown),c.$set(u)},i(l){d||(B(c.$$.fragment,l),d=!0)},o(l){F(c.$$.fragment,l),d=!1},d(l){l&&M(e),ae(c)}}}function Hd(t){return`${t>0?"+":""}${t}`}function Od(t,e,a){let{monster:n}=e,{item:i}=e,s=n[i.properties[0]];Array.isArray(s)||(s=[]);let o=s.map(c=>{if(typeof c!="object"||c==null)return null;let d=Object.keys(c)[0];if(!d)return null;let l=Object.values(c)[0];return!l||isNaN(Number(l))?null:`${Fa(d)} ${Hd(l)}`}).filter(c=>c).join(", "),r=be("dice");return t.$$set=c=>{"monster"in c&&a(2,n=c.monster),"item"in c&&a(0,i=c.item)},[i,o,n]}var li=class extends q{constructor(e){super(),U(this,e,Od,Wd,j,{monster:2,item:0},Pd)}},ho=li;function Rd(t){Y(t,"svelte-htlq9m",".section-header.svelte-htlq9m{border-bottom:1px solid var(--statblock-primary-color);color:var(--statblock-primary-color);font-size:21px;font-variant:small-caps;font-weight:normal;letter-spacing:1px;margin:0;margin-bottom:0.3em;break-inside:avoid-column;break-after:avoid-column}")}function Bd(t){let e,a;return{c(){e=C("h3"),a=J(t[0]),A(e,"class","section-header svelte-htlq9m")},m(n,i){S(n,e,i),x(e,a)},p(n,[i]){i&1&&me(a,n[0])},i:P,o:P,d(n){n&&M(e)}}}function zd(t,e,a){let{header:n}=e;return t.$$set=i=>{"header"in i&&a(0,n=i.header)},[n]}var ui=class extends q{constructor(e){super(),U(this,e,zd,Bd,j,{header:0},Rd)}},Qa=ui;function Nd(t){Y(t,"svelte-4yps8l",".subheading.svelte-4yps8l{font-weight:normal;font-style:italic;font-size:12px;margin:0}")}function Fd(t){let e;return{c(){e=C("div"),e.textContent=`${t[0].join(" ")}`,A(e,"class","subheading svelte-4yps8l")},m(a,n){S(a,e,n)},p:P,d(a){a&&M(e)}}}function Ld(t){let e,a=t[0].length&&Fd(t);return{c(){a&&a.c(),e=oe()},m(n,i){a&&a.m(n,i),S(n,e,i)},p(n,[i]){n[0].length&&a.p(n,i)},i:P,o:P,d(n){a&&a.d(n),n&&M(e)}}}function jd(t,e,a){let{monster:n}=e,{item:i}=e,s=[];for(let o of i.properties)o in n&&s.push(`${_t(n[o])}`);return t.$$set=o=>{"monster"in o&&a(1,n=o.monster),"item"in o&&a(2,i=o.item)},[s,n,i]}var mi=class extends q{constructor(e){super(),U(this,e,jd,Ld,j,{monster:1,item:2},Nd)}},go=mi;function $d(t){Y(t,"svelte-1gnzqxx",".statblock-table-header.svelte-1gnzqxx{font-weight:bold}.table.svelte-1gnzqxx{display:flex;justify-content:space-evenly;align-items:center;flex-wrap:wrap}.table-item.svelte-1gnzqxx{display:flex;justify-content:center;align-items:center;flex-flow:column nowrap}")}function po(t,e,a){let n=t.slice();return n[4]=e[a],n[6]=a,n}function fo(t){let e,a,n=_o(t[4])+"",i,s;return{c(){e=C("span"),a=J("("),i=J(n),s=J(")")},m(o,r){S(o,e,r),x(e,a),x(e,i),x(e,s)},p(o,r){r&2&&n!==(n=_o(o[4])+"")&&me(i,n)},d(o){o&&M(e)}}}function bo(t){let e,a,n=`${t[2][t[6]]}`.toUpperCase()+"",i,s,o,r=t[4]+"",c,d,l,m=t[0].calculate&&fo(t);return{c(){e=C("div"),a=C("span"),i=J(n),s=$(),o=C("span"),c=J(r),d=$(),m&&m.c(),l=$(),A(a,"class","statblock-table-header svelte-1gnzqxx"),A(e,"class","table-item svelte-1gnzqxx")},m(u,h){S(u,e,h),x(e,a),x(a,i),x(e,s),x(e,o),x(o,c),x(o,d),m&&m.m(o,null),x(e,l)},p(u,h){h&2&&r!==(r=u[4]+"")&&me(c,r),u[0].calculate?m?m.p(u,h):(m=fo(u),m.c(),m.m(o,null)):m&&(m.d(1),m=null)},d(u){u&&M(e),m&&m.d()}}}function Gd(t){let e,a=t[1].slice(0,t[2].length),n=[];for(let i=0;i<a.length;i+=1)n[i]=bo(po(t,a,i));return{c(){e=C("div");for(let i=0;i<n.length;i+=1)n[i].c();A(e,"class","table svelte-1gnzqxx")},m(i,s){S(i,e,s);for(let o=0;o<n.length;o+=1)n[o].m(e,null)},p(i,[s]){if(s&7){a=i[1].slice(0,i[2].length);let o;for(o=0;o<a.length;o+=1){let r=po(i,a,o);n[o]?n[o].p(r,s):(n[o]=bo(r),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=a.length}},i:P,o:P,d(i){i&&M(e),tt(n,i)}}}function _o(t){let e=Math.floor(((t??10)-10)/2);return`${e>=0?"+":"-"}${Math.abs(e)}`}function qd(t,e,a){let{monster:n}=e,{item:i}=e,s=n[i.properties[0]];Array.isArray(s)||(s=[]);let o=i.headers??[...Array(s.length>0?s.length:1).keys()];return t.$$set=r=>{"monster"in r&&a(3,n=r.monster),"item"in r&&a(0,i=r.item)},[i,s,o,n]}var hi=class extends q{constructor(e){super(),U(this,e,qd,Gd,j,{monster:3,item:0},$d)}},ko=hi;function vo(t){let e,a,n,i,s=t[0].heading&&yo(t);return n=new kt({props:{render:t[0].markdown,property:t[1]}}),{c(){s&&s.c(),e=$(),a=C("div"),se(n.$$.fragment),A(a,"class","line")},m(o,r){s&&s.m(o,r),S(o,e,r),S(o,a,r),ne(n,a,null),i=!0},p(o,r){o[0].heading?s?(s.p(o,r),r&1&&B(s,1)):(s=yo(o),s.c(),B(s,1),s.m(e.parentNode,e)):s&&(de(),F(s,1,1,()=>{s=null}),le());let c={};r&1&&(c.render=o[0].markdown),r&2&&(c.property=o[1]),n.$set(c)},i(o){i||(B(s),B(n.$$.fragment,o),i=!0)},o(o){F(s),F(n.$$.fragment,o),i=!1},d(o){s&&s.d(o),o&&M(e),o&&M(a),ae(n)}}}function yo(t){let e,a;return e=new Qa({props:{header:t[0].heading}}),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p(n,i){let s={};i&1&&(s.header=n[0].heading),e.$set(s)},i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function Ud(t){let e,a,n=(!t[0].conditioned||t[0].conditioned&&`${t[1]}`.length)&&vo(t);return{c(){n&&n.c(),e=oe()},m(i,s){n&&n.m(i,s),S(i,e,s),a=!0},p(i,[s]){!i[0].conditioned||i[0].conditioned&&`${i[1]}`.length?n?(n.p(i,s),s&3&&B(n,1)):(n=vo(i),n.c(),B(n,1),n.m(e.parentNode,e)):n&&(de(),F(n,1,1,()=>{n=null}),le())},i(i){a||(B(n),a=!0)},o(i){F(n),a=!1},d(i){n&&n.d(i),i&&M(e)}}}function Vd(t,e,a){let{monster:n}=e,{item:i}=e,s=i.text&&i.text.length?i.text:_t(n[i.properties[0]]);return!i.conditioned&&!`${s}`.length&&(s=i.fallback??"-"),t.$$set=o=>{"monster"in o&&a(2,n=o.monster),"item"in o&&a(0,i=o.item)},[i,s,n]}var gi=class extends q{constructor(e){super(),U(this,e,Vd,Ud,j,{monster:2,item:0})}},wo=gi;function Kd(t){Y(t,"svelte-1nb7a6z",".image.svelte-1nb7a6z{width:75px;height:75px}img.svelte-1nb7a6z{object-fit:cover;width:100%;height:100%;border-radius:100%;border:2px solid var(--statblock-primary-color);object-position:center}")}function To(t,e,a){let n=t.slice();return n[7]=e[a],n}function Co(t){let e,a,n={ctx:t,current:null,token:null,hasCatch:!1,pending:Jd,then:Xd,catch:Yd,value:10};return Rs(a=t[2],n),{c(){e=oe(),n.block.c()},m(i,s){S(i,e,s),n.block.m(i,n.anchor=s),n.mount=()=>e.parentNode,n.anchor=e},p(i,s){t=i,Bs(n,t,s)},d(i){i&&M(e),n.block.d(i),n.token=null,n=null}}}function Yd(t){return{c:P,m:P,p:P,d:P}}function Xd(t){let e,a=t[10]&&Zd(t);return{c(){a&&a.c(),e=$()},m(n,i){a&&a.m(n,i),S(n,e,i)},p(n,i){n[10]&&a.p(n,i)},d(n){a&&a.d(n),n&&M(e)}}}function Zd(t){let e,a,n,i;return{c(){e=C("div"),a=C("img"),Ss(a.src,n=t[10])||A(a,"src",n),A(a,"alt",i=t[0].name),A(a,"class","svelte-1nb7a6z"),A(e,"class","image svelte-1nb7a6z")},m(s,o){S(s,e,o),x(e,a)},p(s,o){o&1&&i!==(i=s[0].name)&&A(a,"alt",i)},d(s){s&&M(e)}}}function Jd(t){return{c:P,m:P,p:P,d:P}}function xo(t){let e,a=t[7]in t[0]&&Co(t);return{c(){a&&a.c(),e=oe()},m(n,i){a&&a.m(n,i),S(n,e,i)},p(n,i){n[7]in n[0]?a?a.p(n,i):(a=Co(n),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},d(n){a&&a.d(n),n&&M(e)}}}function Qd(t){let e,a=t[1].properties,n=[];for(let i=0;i<a.length;i+=1)n[i]=xo(To(t,a,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();e=oe()},m(i,s){for(let o=0;o<n.length;o+=1)n[o].m(i,s);S(i,e,s)},p(i,[s]){if(s&7){a=i[1].properties;let o;for(o=0;o<a.length;o+=1){let r=To(i,a,o);n[o]?n[o].p(r,s):(n[o]=xo(r),n[o].c(),n[o].m(e.parentNode,e))}for(;o<n.length;o+=1)n[o].d(1);n.length=a.length}},i:P,o:P,d(i){tt(n,i),i&&M(e)}}}function Ao(t){return t?.replace(/(\[|\])/g,"")}function el(t,e,a){let{monster:n}=e,{item:i}=e,s=be("plugin"),o=be("context");async function r(l){l=decodeURIComponent(l);let m;try{if(/https?:/.test(l)){let[u]=Ao(l).split("|");m=u}else{let[u]=Ao(l).split("|"),h=s.app.metadataCache.getFirstLinkpathDest(u,"");if(!h)throw new Error;m=s.app.vault.getResourcePath(h)}}catch(u){console.error(u)}return m}let d=(async()=>{if(i.properties.length&&i.properties.some(l=>l in n&&typeof n[l]=="string")){let l=i.properties.filter(u=>u in n&&typeof n[u]=="string");l.length>1&&console.log("TTRPG Statblocks: Multiple image properties provided, using first.");let m=n[l[0]];return r(m)}})();return t.$$set=l=>{"monster"in l&&a(0,n=l.monster),"item"in l&&a(1,i=l.item)},[n,i,d]}var pi=class extends q{constructor(e){super(),U(this,e,el,Qd,j,{monster:0,item:1},Kd)}},Do=pi;function tl(t){Y(t,"svelte-wrk0j1",`.statblock-content.svelte-wrk0j1{font-family:"Noto Sans", "Myriad Pro", Calibri, Helvetica, Arial,
sans-serif;font-size:14px;color:var(--statblock-primary-color);background-color:var(--statblock-background-color);padding:0.5em;border:1px #ddd solid;box-shadow:0 0 1.5em #ddd;margin-left:2px;margin-right:2px;display:flex;gap:1rem}.statblock-content.svelte-wrk0j1>.column{width:var(--statblock-column-width)}@media screen and (max-width: 400px){.statblock-content.svelte-wrk0j1>.column{width:75vw}}.statblock-item-container{margin-bottom:0.25rem}.statblock-detached{position:absolute;top:-9999px}.statblock-item-inline{display:flex;justify-content:space-between}`)}function al(t){let e,a;return{c(){e=C("div"),a=C("div"),A(a,"class","statblock-content svelte-wrk0j1"),A(e,"class","statblock-content-container"),Un(e,"--statblock-column-width",t[1])},m(n,i){S(n,e,i),x(e,a),t[6](a)},p(n,[i]){i&2&&Un(e,"--statblock-column-width",n[1])},i:P,o:P,d(n){n&&M(e),t[6](null)}}}function nl(t,e,a){let n,i=ze(),{statblock:s}=e,{columns:o=1}=e,{ready:r}=e,{maxColumns:c=o}=e,d=be("monster"),l=_=>_.conditioned==null||!_.conditioned||!_.properties.length?!0:_.properties.some(D=>!!(D in d&&(Array.isArray(d[D])&&d[D].length||typeof d[D]=="string"&&d[D].length||typeof d[D]=="number"))),m=Kn(),u=(_,D)=>{let I=[],T=D??createDiv("statblock-item-container");if(m.set("item",_),!l(_))return[];switch(I.push(T),_.type){case"group":{for(let k of _.nested??[]){let g=u(k,T);I.push(...g)}break}case"heading":{let k=new co({target:T,props:{monster:d,item:_},context:m});k.$on("save",g=>i("save",g.detail)),k.$on("export",g=>i("export",g.detail));break}case"inline":{let k=createDiv("statblock-item-inline");for(let g of _.nested??[])u(g,k.createDiv("statblock-inline-item"));I.push(k);break}case"image":{new Do({target:T,props:{monster:d,item:_},context:m});break}case"property":{new mo({target:T,props:{monster:d,item:_},context:m});break}case"saves":{new ho({target:T,props:{monster:d,item:_},context:m});break}case"spells":{let k=d[_.properties[0]];if(!Array.isArray(k)||!k.length)return;new io({target:T,props:{monster:d},context:m});break}case"subheading":{new go({target:T,props:{monster:d,item:_},context:m});break}case"table":{new ko({target:T,props:{monster:d,item:_},context:m});break}case"text":{new wo({target:T,props:{monster:d,item:_}});break}case"traits":{let k=d[_.properties[0]];if(!Array.isArray(k)||!k.length)return[];_.heading&&new Qa({target:T,props:{header:_.heading},context:m});try{for(let g of k){let p=createDiv("statblock-item-container");new ba({target:p,props:{name:g.name,desc:g.desc,render:_.markdown},context:m}),I.push(p)}}catch{return[]}break}}if(_.hasRule){let k=createDiv("statblock-item-container");new Ja({target:k}),I.push(k)}return I},h=_=>{_.empty();let D=[];for(let p of s)D.push(...u(p));let I=_.createDiv("column");if(o==1){D.forEach(p=>I.appendChild(p));return}let T=document.body.createDiv("statblock-detached"),k=new Map;for(let p of D)T.appendChild(p),k.set(p,p.clientHeight);T.style.width=b;let g;d.forceColumns?g=T.clientHeight/c:d.columns&&d.columns>0?g=Math.max(T.clientHeight/d.columns,T.clientHeight/o):g=Math.min(T.clientHeight/o,n),T.empty(),T.detach();for(let p of D)_.childElementCount<o&&I.clientHeight+k.get(p)>g&&(I=_.createDiv("column")),I.appendChild(p)},f,b="400px";d.columnWidth&&(typeof d.columnWidth=="number"&&(b=`${d.columnWidth}px`),typeof d.columnWidth=="string"&&(b=d.columnWidth));function y(_){Qe[_?"unshift":"push"](()=>{f=_,a(0,f)})}t.$$set=_=>{"statblock"in _&&a(2,s=_.statblock),"columns"in _&&a(3,o=_.columns),"ready"in _&&a(4,r=_.ready),"maxColumns"in _&&a(5,c=_.maxColumns)},t.$$.update=()=>{if(t.$$.dirty&17){e:r&&f&&h(f)}};e:n=!isNaN(Number(d.columnHeight))&&d.columnHeight>0?d.columnHeight:1/0;return[f,b,s,o,r,c,y]}var fi=class extends q{constructor(e){super(),U(this,e,nl,al,j,{statblock:2,columns:3,ready:4,maxColumns:5},tl)}},Mo=fi;function il(t){Y(t,"svelte-1r5gl1g",".container.svelte-1r5gl1g{display:flex;width:100%;margin:0.25rem 0}.statblock.svelte-1r5gl1g{margin:0 auto;position:relative}.icons.svelte-1r5gl1g{position:absolute;right:0}")}function So(t){let e,a,n,i,s,o,r,c=[ol,sl],d=[];function l(u,h){return u[0]?0:1}a=l(t,-1),n=d[a]=c[a](t);let m=t[2]&&Io(t);return{c(){e=C("div"),n.c(),s=$(),m&&m.c(),o=oe(),A(e,"class",i=Is(t[9].join(" "))+" svelte-1r5gl1g"),$e(e,"obsidian-statblock-plugin",!0),$e(e,"statblock",!0)},m(u,h){S(u,e,h),d[a].m(e,null),S(u,s,h),m&&m.m(u,h),S(u,o,h),r=!0},p(u,h){let f=a;a=l(u,h),a===f?d[a].p(u,h):(de(),F(d[f],1,1,()=>{d[f]=null}),le(),n=d[a],n?n.p(u,h):(n=d[a]=c[a](u),n.c()),B(n,1),n.m(e,null)),u[2]?m?m.p(u,h):(m=Io(u),m.c(),m.m(o.parentNode,o)):m&&(m.d(1),m=null)},i(u){r||(B(n),r=!0)},o(u){F(n),r=!1},d(u){u&&M(e),d[a].d(),u&&M(s),m&&m.d(u),u&&M(o)}}}function sl(t){let e;return{c(){e=C("span"),e.textContent="Invalid monster."},m(a,n){S(a,e,n)},p:P,i:P,o:P,d(a){a&&M(e)}}}function ol(t){let e,a,n=t[4],i,s,o;e=new ei({});let r=Eo(t);return s=new ei({}),{c(){se(e.$$.fragment),a=$(),r.c(),i=$(),se(s.$$.fragment)},m(c,d){ne(e,c,d),S(c,a,d),r.m(c,d),S(c,i,d),ne(s,c,d),o=!0},p(c,d){d&16&&j(n,n=c[4])?(de(),F(r,1,1,P),le(),r=Eo(c),r.c(),B(r,1),r.m(i.parentNode,i)):r.p(c,d)},i(c){o||(B(e.$$.fragment,c),B(r),B(s.$$.fragment,c),o=!0)},o(c){F(e.$$.fragment,c),F(r),F(s.$$.fragment,c),o=!1},d(c){ae(e,c),c&&M(a),r.d(c),c&&M(i),ae(s,c)}}}function Eo(t){let e,a;return e=new Mo({props:{columns:t[4],maxColumns:t[6],statblock:t[1],ready:t[5]}}),e.$on("save",t[15]),e.$on("export",t[16]),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p(n,i){let s={};i&16&&(s.columns=n[4]),i&2&&(s.statblock=n[1]),i&32&&(s.ready=n[5]),e.$set(s)},i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function Io(t){let e,a,n,i;return{c(){e=C("div"),A(e,"class","icons svelte-1r5gl1g")},m(s,o){S(s,e,o),n||(i=[te(a=t[7].call(null,e)),Ee(e,"click",t[8])],n=!0)},p:P,d(s){s&&M(e),n=!1,fe(i)}}}function rl(t){let e,a,n=t[5]&&So(t);return{c(){e=C("div"),n&&n.c(),A(e,"class","container svelte-1r5gl1g")},m(i,s){S(i,e,s),n&&n.m(e,null),t[17](e),a=!0},p(i,[s]){i[5]?n?(n.p(i,s),s&32&&B(n,1)):(n=So(i),n.c(),B(n,1),n.m(e,null)):n&&(de(),F(n,1,1,()=>{n=null}),le())},i(i){a||(B(n),a=!0)},o(i){F(n),a=!1},d(i){i&&M(e),n&&n.d(),t[17](null)}}}function cl(t,e,a){let n,i,s=ze(),{monster:o}=e,{context:r}=e,{plugin:c}=e,{statblock:d}=e,{renderer:l}=e,{layout:m}=e,{icons:u=!0}=e,h=!isNaN(Number(o.columns))&&Number(o.columns)>0?Number(o.columns):2,f=o.export??c.settings.export,b=c.canUseDiceRoller&&(o.dice??c.settings.useDice),y=o.render??c.settings.renderDice;ht("plugin",c),ht("context",r),ht("monster",o),ht("dice",b),ht("render",y),ht("renderer",l);let _=js(!1);ht("reset",_);let D,I=h,T=!1,k=()=>{if(o.forceColumns){a(4,I=h),p.disconnect();return}let N=D.clientWidth;a(4,I=Math.min(Math.max(Math.floor(N/i),1),h))},g=(0,Zt.debounce)(()=>{k(),T||a(5,T=!0)},100,!1),p=new ResizeObserver(g);fa(()=>{k(),p.observe(D)}),Vn(()=>{p.disconnect()});let v=N=>{new Zt.ExtraButtonComponent(N).setIcon("vertical-three-dots")},E=new Zt.Menu(c.app);E.addItem(N=>N.setIcon(Xa).setTitle("Save to Bestiary").onClick(()=>s("save"))),f&&E.addItem(N=>N.setIcon(Za).setTitle("Export as PNG").onClick(()=>s("export"))),b&&E.addItem(N=>N.setIcon("reset").setTitle("Reset Dice").onClick(()=>{_.set(!0),_.set(!1)}));let H=N=>{E.showAtMouseEvent(N)},w=o?.name?.toLowerCase().replace(/[^A-Za-z0-9\s]/g,"").replace(/\s+/g,"-")??"no-name",W=m.toLowerCase().replace(/[^A-Za-z0-9\s]/g,"").replace(/\s+/g,"-")??"no-layout",R=[w,W].filter(N=>N?.length);function G(N){Yn.call(this,t,N)}function z(N){Yn.call(this,t,N)}function Z(N){Qe[N?"unshift":"push"](()=>{D=N,a(3,D)})}return t.$$set=N=>{"monster"in N&&a(0,o=N.monster),"context"in N&&a(10,r=N.context),"plugin"in N&&a(11,c=N.plugin),"statblock"in N&&a(1,d=N.statblock),"renderer"in N&&a(12,l=N.renderer),"layout"in N&&a(13,m=N.layout),"icons"in N&&a(2,u=N.icons)},t.$$.update=()=>{if(t.$$.dirty&1){e:a(14,n=Number(`${o.columnWidth}`.replace(/\D/g,"")))}if(t.$$.dirty&16384){e:i=!isNaN(n)&&n>0?n:400}},[o,d,u,D,I,T,h,v,H,R,r,c,l,m,n,G,z,Z]}var bi=class extends q{constructor(e){super(),U(this,e,cl,rl,j,{monster:0,context:10,plugin:11,statblock:1,renderer:12,layout:13,icons:2},il)}},Po=bi;var Ho=ma(_a()),vt=class extends Wo.MarkdownRenderChild{constructor(a,n,i,s,o,r=Ve){super(a);this.monster=n;this.plugin=i;this.icons=s;this.context=o;this.layout=r;this.loaded=!1;let c=new Po({target:this.containerEl,props:{context:this.context,monster:this.monster,statblock:this.layout.blocks,layout:this.layout.name,plugin:this.plugin,renderer:this,icons:this.icons}});c.$on("save",async()=>{!await dl(this.plugin.app,"This will overwrite an existing monster in settings. Are you sure?")||this.plugin.saveMonster({...(0,Ho.default)(this.monster),source:"Homebrew",layout:this.layout.name})}),c.$on("export",()=>{this.plugin.exportAsPng(this.monster.name,this.containerEl.firstElementChild)})}};async function dl(t,e,a={cta:"Yes",secondary:"No"}){return new Promise((n,i)=>{let s=new vi(t,e,a);s.onClose=()=>{n(s.confirmed)},s.open()})}var vi=class extends ka.Modal{constructor(a,n,i){super(a);this.text=n;this.buttons=i;this.confirmed=!1}async display(){new Promise(a=>{this.contentEl.empty(),this.contentEl.addClass("confirm-modal"),this.contentEl.createEl("p",{text:this.text});let n=this.contentEl.createDiv("fantasy-calendar-confirm-buttons");new ka.ButtonComponent(n).setButtonText(this.buttons.cta).setCta().onClick(()=>{this.confirmed=!0,this.close()}),new ka.ButtonComponent(n).setButtonText(this.buttons.secondary).onClick(()=>{this.close()})})}onOpen(){this.display()}};var V=require("obsidian");var lt=require("obsidian");var Bo=require("obsidian");var Oo=[["group","Group"],["heading","Heading"],["image","Image"],["inline","Inline Group"],["property","Property Line"],["saves","Saves"],["spells","Spells"],["subheading","Subheading"],["table","Table"],["text","Text"],["traits","Traits"]],Ro=["property","traits","spells","text","saves"];function ll(t){switch(t){case"inline":case"group":return{type:t,id:L(),properties:[],nested:[]};case"heading":return{type:"heading",id:L(),properties:[]};case"property":return{type:"property",id:L(),properties:[]};case"saves":return{type:"saves",id:L(),properties:[]};case"traits":return{type:"traits",id:L(),properties:[]};case"spells":return{type:"spells",id:L(),properties:[]};case"subheading":return{type:"subheading",id:L(),properties:[]};case"image":return{type:"image",id:L(),properties:[]};case"table":return{type:"table",id:L(),properties:[],headers:[],calculate:!0};case"text":return{type:"text",id:L(),properties:[],text:null}}}var en=async(t,e)=>new Promise((a,n)=>{let i=new Bo.Menu(t.app).setNoIcon();Oo.forEach(s=>{i.addItem(o=>{o.setTitle(s[1]).onClick(()=>{let r=ll(s[0]);a(r)})})}),i.onunload=()=>{a()},i.showAtMouseEvent(e)});function zo(t){let e=t-1;return e*e*e+1}function tn(t,{from:e,to:a},n={}){let i=getComputedStyle(t),s=i.transform==="none"?"":i.transform,[o,r]=i.transformOrigin.split(" ").map(parseFloat),c=e.left+e.width*o/a.width-(a.left+o),d=e.top+e.height*r/a.height-(a.top+r),{delay:l=0,duration:m=h=>Math.sqrt(h)*120,easing:u=zo}=n;return{delay:l,duration:et(m)?m(Math.sqrt(c*c+d*d)):m,easing:u,css:(h,f)=>{let b=f*c,y=f*d,_=h+f*e.width/a.width,D=h+f*e.height/a.height;return`transform: ${s} translate(${b}px, ${y}px) scale(${_}, ${D});`}}}function wa(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wa=function(e){return typeof e}:wa=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa(t)}function Ta(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function No(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,n)}return a}function Ht(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?No(Object(a),!0).forEach(function(n){Ta(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):No(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function ul(t,e){if(t==null)return{};var a={},n=Object.keys(t),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(a[i]=t[i]);return a}function ml(t,e){if(t==null)return{};var a=ul(t,e),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(a[n]=t[n]))}return a}function hl(t,e){return pl(t)||bl(t,e)||Si(t,e)||kl()}function Qt(t){return gl(t)||fl(t)||Si(t)||_l()}function gl(t){if(Array.isArray(t))return wi(t)}function pl(t){if(Array.isArray(t))return t}function fl(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function bl(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var a=[],n=!0,i=!1,s=void 0;try{for(var o=t[Symbol.iterator](),r;!(n=(r=o.next()).done)&&(a.push(r.value),!(e&&a.length===e));n=!0);}catch(c){i=!0,s=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return a}}function Si(t,e){if(!!t){if(typeof t=="string")return wi(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return wi(t,e)}}function wi(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function _l(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mn(t,e){var a;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(a=Si(t))||e&&t&&typeof t.length=="number"){a&&(t=a);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,r;return{s:function(){a=t[Symbol.iterator]()},n:function(){var c=a.next();return s=c.done,c},e:function(c){o=!0,r=c},f:function(){try{!s&&a.return!=null&&a.return()}finally{if(o)throw r}}}}var vl="finalize",yl="consider";function ea(t,e,a){t.dispatchEvent(new CustomEvent(vl,{detail:{items:e,info:a}}))}function Tt(t,e,a){t.dispatchEvent(new CustomEvent(yl,{detail:{items:e,info:a}}))}var hn="draggedEntered",Aa="draggedLeft",gn="draggedOverIndex",Ei="draggedLeftDocument",sn={LEFT_FOR_ANOTHER:"leftForAnother",OUTSIDE_OF_ANY:"outsideOfAny"};function wl(t,e,a){t.dispatchEvent(new CustomEvent(hn,{detail:{indexObj:e,draggedEl:a}}))}function Tl(t,e,a){t.dispatchEvent(new CustomEvent(Aa,{detail:{draggedEl:e,type:sn.LEFT_FOR_ANOTHER,theOtherDz:a}}))}function Cl(t,e){t.dispatchEvent(new CustomEvent(Aa,{detail:{draggedEl:e,type:sn.OUTSIDE_OF_ANY}}))}function xl(t,e,a){t.dispatchEvent(new CustomEvent(gn,{detail:{indexObj:e,draggedEl:a}}))}function Al(t){window.dispatchEvent(new CustomEvent(Ei,{detail:{draggedEl:t}}))}var We={DRAG_STARTED:"dragStarted",DRAGGED_ENTERED:hn,DRAGGED_ENTERED_ANOTHER:"dragEnteredAnother",DRAGGED_OVER_INDEX:gn,DRAGGED_LEFT:Aa,DRAGGED_LEFT_ALL:"draggedLeftAll",DROPPED_INTO_ZONE:"droppedIntoZone",DROPPED_INTO_ANOTHER:"droppedIntoAnother",DROPPED_OUTSIDE_OF_ANY:"droppedOutsideOfAny",DRAG_STOPPED:"dragStopped"},He={POINTER:"pointer",KEYBOARD:"keyboard"},pn="isDndShadowItem",Ii="data-is-dnd-shadow-item",Ct="id:dnd-shadow-placeholder-0000",Dl="dnd-action-dragged-el",De="id",Ti=0;function Zo(){Ti++}function Jo(){if(Ti===0)throw new Error("Bug! trying to decrement when there are no dropzones");Ti--}var Pi=typeof window>"u",X=function(){};function Qo(t){var e,a=t.getBoundingClientRect(),n=getComputedStyle(t),i=n.transform;if(i){var s,o,r,c;if(i.startsWith("matrix3d("))e=i.slice(9,-1).split(/, /),s=+e[0],o=+e[5],r=+e[12],c=+e[13];else if(i.startsWith("matrix("))e=i.slice(7,-1).split(/, /),s=+e[0],o=+e[3],r=+e[4],c=+e[5];else return a;var d=n.transformOrigin,l=a.x-r-(1-s)*parseFloat(d),m=a.y-c-(1-o)*parseFloat(d.slice(d.indexOf(" ")+1)),u=s?a.width/s:t.offsetWidth,h=o?a.height/o:t.offsetHeight;return{x:l,y:m,width:u,height:h,top:m,right:l+u,bottom:m+h,left:l}}else return a}function er(t){var e=Qo(t);return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function Wi(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,bottom:e.bottom+window.scrollY,left:e.left+window.scrollX,right:e.right+window.scrollX}}function tr(t){return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function Ml(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Hi(t,e){return t.y<=e.bottom&&t.y>=e.top&&t.x>=e.left&&t.x<=e.right}function Ca(t){return tr(Wi(t))}function Fo(t,e){var a=Ca(t),n=er(e);return Hi(a,n)}function Sl(t,e){var a=Ca(t),n=Ca(e);return Ml(a,n)}function El(t){var e=Wi(t);return e.right<0||e.left>document.documentElement.scrollWidth||e.bottom<0||e.top>document.documentElement.scrollHeight}function Il(t,e){var a=Wi(e);return Hi(t,a)?{top:t.y-a.top,bottom:a.bottom-t.y,left:t.x-a.left,right:Math.min(a.right,document.documentElement.clientWidth)-t.x}:null}var Bt;function Oi(){X(function(){return"resetting indexes cache"}),Bt=new Map}Oi();function Pl(t){X(function(){return"resetting indexes cache for dz"}),Bt.delete(t)}function Wl(t){var e=Array.from(t.children).findIndex(function(a){return a.getAttribute(Ii)});if(e>=0)return Bt.has(t)||Bt.set(t,new Map),Bt.get(t).set(e,er(t.children[e])),e}function Hl(t,e){if(!Fo(t,e))return null;var a=e.children;if(a.length===0)return{index:0,isProximityBased:!0};for(var n=Wl(e),i=0;i<a.length;i++)if(Fo(t,a[i])){var s=Bt.has(e)&&Bt.get(e).get(i);return s&&!Hi(Ca(t),s)?{index:n,isProximityBased:!1}:{index:i,isProximityBased:!1}}for(var o=Number.MAX_VALUE,r=void 0,c=0;c<a.length;c++){var d=Sl(t,a[c]);d<o&&(o=d,r=c)}return{index:r,isProximityBased:!0}}var va=25;function ar(){var t;function e(){t={directionObj:void 0,stepPx:0}}e();function a(s){var o=t,r=o.directionObj,c=o.stepPx;r&&(s.scrollBy(r.x*c,r.y*c),window.requestAnimationFrame(function(){return a(s)}))}function n(s){return va-s}function i(s,o){if(!o)return!1;var r=Il(s,o);if(r===null)return e(),!1;var c=!!t.directionObj,d=!1,l=!1;return o.scrollHeight>o.clientHeight&&(r.bottom<va?(d=!0,t.directionObj={x:0,y:1},t.stepPx=n(r.bottom)):r.top<va&&(d=!0,t.directionObj={x:0,y:-1},t.stepPx=n(r.top)),!c&&d)||o.scrollWidth>o.clientWidth&&(r.right<va?(l=!0,t.directionObj={x:1,y:0},t.stepPx=n(r.right)):r.left<va&&(l=!0,t.directionObj={x:-1,y:0},t.stepPx=n(r.left)),!c&&l)?(a(o),!0):(e(),!1)}return{scrollIfNeeded:i,resetScrolling:e}}function gt(t){return JSON.stringify(t,null,2)}function Lo(t){if(!t)throw new Error("cannot get depth of a falsy node");return nr(t,0)}function nr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.parentElement?nr(t.parentElement,e+1):e-1}function Ol(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var a in t)if(!{}.hasOwnProperty.call(e,a)||e[a]!==t[a])return!1;return!0}function Rl(t,e){if(t.length!==e.length)return!1;for(var a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var Bl=200,jo=10,ir=ar(),zl=ir.scrollIfNeeded,Nl=ir.resetScrolling,Ci;function Fl(t,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bl,n,i,s=!1,o,r=Array.from(e).sort(function(d,l){return Lo(l)-Lo(d)});function c(){var d=Ca(t),l=zl(d,n);if(!l&&o&&Math.abs(o.x-d.x)<jo&&Math.abs(o.y-d.y)<jo){Ci=window.setTimeout(c,a);return}if(El(t)){X(function(){return"off document"}),Al(t);return}o=d;var m=!1,u=mn(r),h;try{for(u.s();!(h=u.n()).done;){var f=h.value;l&&Pl(n);var b=Hl(t,f);if(b!==null){var y=b.index;m=!0,f!==n?(n&&Tl(n,t,f),wl(f,b,t),n=f):y!==i&&(xl(f,b,t),i=y);break}}}catch(_){u.e(_)}finally{u.f()}!m&&s&&n?(Cl(n,t),n=void 0,i=void 0,s=!1):s=!0,Ci=window.setTimeout(c,a)}c()}function Ll(){X(function(){return"unobserving"}),clearTimeout(Ci),Nl(),Oi()}var jl=300,on;function rn(t){var e=t.touches?t.touches[0]:t;on={x:e.clientX,y:e.clientY}}var sr=ar(),$l=sr.scrollIfNeeded,Gl=sr.resetScrolling,or;function rr(){if(on){var t=$l(on,document.documentElement);t&&Oi()}or=window.setTimeout(rr,jl)}function ql(){X(function(){return"arming window scroller"}),window.addEventListener("mousemove",rn),window.addEventListener("touchmove",rn),rr()}function Ul(){X(function(){return"disarming window scroller"}),window.removeEventListener("mousemove",rn),window.removeEventListener("touchmove",rn),on=void 0,window.clearTimeout(or),Gl()}function Vl(t){var e=t.cloneNode(!0),a=[],n=t.tagName==="SELECT",i=n?[t]:Qt(t.querySelectorAll("select")),s=mn(i),o;try{for(s.s();!(o=s.n()).done;){var r=o.value;a.push(r.value)}}catch(h){s.e(h)}finally{s.f()}if(i.length<=0)return e;for(var c=n?[e]:Qt(e.querySelectorAll("select")),d=0;d<c.length;d++){var l=c[d],m=a[d],u=l.querySelector('option[value="'.concat(m,'"'));u&&u.setAttribute("selected",!0)}return e}var Kl=.2;function Wt(t){return"".concat(t," ").concat(Kl,"s ease")}function Yl(t,e){var a=t.getBoundingClientRect(),n=Vl(t);cr(t,n),n.id=Dl,n.style.position="fixed";var i=a.top,s=a.left;if(n.style.top="".concat(i,"px"),n.style.left="".concat(s,"px"),e){var o=tr(a);i-=o.y-e.y,s-=o.x-e.x,window.setTimeout(function(){n.style.top="".concat(i,"px"),n.style.left="".concat(s,"px")},0)}return n.style.margin="0",n.style.boxSizing="border-box",n.style.height="".concat(a.height,"px"),n.style.width="".concat(a.width,"px"),n.style.transition="".concat(Wt("top"),", ").concat(Wt("left"),", ").concat(Wt("background-color"),", ").concat(Wt("opacity"),", ").concat(Wt("color")," "),window.setTimeout(function(){return n.style.transition+=", ".concat(Wt("width"),", ").concat(Wt("height"))},0),n.style.zIndex="9999",n.style.cursor="grabbing",n}function Xl(t){t.style.cursor="grab"}function Zl(t,e,a,n,i){var s=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=s.width-o.width,c=s.height-o.height;if(r||c){var d={left:(a-o.left)/o.width,top:(n-o.top)/o.height};t.style.height="".concat(s.height,"px"),t.style.width="".concat(s.width,"px"),t.style.left="".concat(parseFloat(t.style.left)-d.left*r,"px"),t.style.top="".concat(parseFloat(t.style.top)-d.top*c,"px")}cr(e,t),i()}function cr(t,e){var a=window.getComputedStyle(t);Array.from(a).filter(function(n){return n.startsWith("background")||n.startsWith("padding")||n.startsWith("font")||n.startsWith("text")||n.startsWith("align")||n.startsWith("justify")||n.startsWith("display")||n.startsWith("flex")||n.startsWith("border")||n==="opacity"||n==="color"||n==="list-style-type"}).forEach(function(n){return e.style.setProperty(n,a.getPropertyValue(n),a.getPropertyPriority(n))})}function Jl(t,e){t.draggable=!1,t.ondragstart=function(){return!1},e?(t.style.userSelect="",t.style.WebkitUserSelect="",t.style.cursor=""):(t.style.userSelect="none",t.style.WebkitUserSelect="none",t.style.cursor="grab")}function dr(t){t.style.display="none",t.style.position="fixed",t.style.zIndex="-5"}function Ql(t){t.style.visibility="hidden",t.setAttribute(Ii,"true")}function eu(t){t.style.visibility="",t.removeAttribute(Ii)}function nn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return[]};t.forEach(function(n){var i=e(n);Object.keys(i).forEach(function(s){n.style[s]=i[s]}),a(n).forEach(function(s){return n.classList.add(s)})})}function cn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return[]};t.forEach(function(n){var i=e(n);Object.keys(i).forEach(function(s){n.style[s]=""}),a(n).forEach(function(s){return n.classList.contains(s)&&n.classList.remove(s)})})}function tu(t){var e=t.style.minHeight;t.style.minHeight=window.getComputedStyle(t).getPropertyValue("height");var a=t.style.minWidth;return t.style.minWidth=window.getComputedStyle(t).getPropertyValue("width"),function(){t.style.minHeight=e,t.style.minWidth=a}}var au="--any--",nu=100,$o=3,Go={outline:"rgba(255, 255, 102, 0.7) solid 2px"},dt,Pe,Ge,fn,Te,bn,ta,je,yt,Ke,Rt=!1,Ri=!1,Bi,Da=!1,ya=[],it=new Map,we=new Map,yi=new WeakMap;function iu(t,e){X(function(){return"registering drop-zone if absent"}),it.has(e)||it.set(e,new Set),it.get(e).has(t)||(it.get(e).add(t),Zo())}function qo(t,e){it.get(e).delete(t),Jo(),it.get(e).size===0&&it.delete(e)}function su(){X(function(){return"watching dragged element"}),ql();var t=it.get(fn),e=mn(t),a;try{for(e.s();!(a=e.n()).done;){var n=a.value;n.addEventListener(hn,lr),n.addEventListener(Aa,ur),n.addEventListener(gn,mr)}}catch(s){e.e(s)}finally{e.f()}window.addEventListener(Ei,aa);var i=Math.max.apply(Math,[nu].concat(Qt(Array.from(t.keys()).map(function(s){return we.get(s).dropAnimationDurationMs}))));Fl(Pe,t,i*1.07)}function ou(){X(function(){return"unwatching dragged element"}),Ul();var t=it.get(fn),e=mn(t),a;try{for(e.s();!(a=e.n()).done;){var n=a.value;n.removeEventListener(hn,lr),n.removeEventListener(Aa,ur),n.removeEventListener(gn,mr)}}catch(i){e.e(i)}finally{e.f()}window.removeEventListener(Ei,aa),Ll()}function ru(t){return t.findIndex(function(e){return e[De]===Ct})}function _n(t){return t.findIndex(function(e){return!!e[pn]&&e[De]!==Ct})}function lr(t){X(function(){return["dragged entered",t.currentTarget,t.detail]});var e=we.get(t.currentTarget),a=e.items,n=e.dropFromOthersDisabled;if(n&&t.currentTarget!==Te){X(function(){return"ignoring dragged entered because drop is currently disabled"});return}if(Da=!1,a=a.filter(function(m){return m[De]!==ta[De]}),X(function(){return"dragged entered items ".concat(gt(a))}),Te!==t.currentTarget){var i=we.get(Te).items,s=i.filter(function(m){return!m[pn]});Tt(Te,s,{trigger:We.DRAGGED_ENTERED_ANOTHER,id:Ge[De],source:He.POINTER})}else{var o=ru(a);o!==-1&&(X(function(){return"removing placeholder item from origin dz"}),a.splice(o,1))}var r=t.detail.indexObj,c=r.index,d=r.isProximityBased,l=d&&c===t.currentTarget.children.length-1?c+1:c;je=t.currentTarget,a.splice(l,0,ta),Tt(t.currentTarget,a,{trigger:We.DRAGGED_ENTERED,id:Ge[De],source:He.POINTER})}function ur(t){if(!!Rt){X(function(){return["dragged left",t.currentTarget,t.detail]});var e=we.get(t.currentTarget),a=e.items,n=e.dropFromOthersDisabled;if(n&&t.currentTarget!==Te&&t.currentTarget!==je){X(function(){return"drop is currently disabled"});return}var i=_n(a),s=a.splice(i,1)[0];je=void 0;var o=t.detail,r=o.type,c=o.theOtherDz;if(r===sn.OUTSIDE_OF_ANY||r===sn.LEFT_FOR_ANOTHER&&c!==Te&&we.get(c).dropFromOthersDisabled){X(function(){return"dragged left all, putting shadow element back in the origin dz"}),Da=!0,je=Te;var d=we.get(Te).items;d.splice(bn,0,s),Tt(Te,d,{trigger:We.DRAGGED_LEFT_ALL,id:Ge[De],source:He.POINTER})}Tt(t.currentTarget,a,{trigger:We.DRAGGED_LEFT,id:Ge[De],source:He.POINTER})}}function mr(t){X(function(){return["dragged is over index",t.currentTarget,t.detail]});var e=we.get(t.currentTarget),a=e.items,n=e.dropFromOthersDisabled;if(n&&t.currentTarget!==Te){X(function(){return"drop is currently disabled"});return}Da=!1;var i=t.detail.indexObj.index,s=_n(a);a.splice(s,1),a.splice(i,0,ta),Tt(t.currentTarget,a,{trigger:We.DRAGGED_OVER_INDEX,id:Ge[De],source:He.POINTER})}function dn(t){t.preventDefault();var e=t.touches?t.touches[0]:t;Ke={x:e.clientX,y:e.clientY},Pe.style.transform="translate3d(".concat(Ke.x-yt.x,"px, ").concat(Ke.y-yt.y,"px, 0)")}function aa(){X(function(){return"dropped"}),Ri=!0,window.removeEventListener("mousemove",dn),window.removeEventListener("touchmove",dn),window.removeEventListener("mouseup",aa),window.removeEventListener("touchend",aa),ou(),Xl(Pe),je||(X(function(){return"element was dropped right after it left origin but before entering somewhere else"}),je=Te),X(function(){return["dropped in dz",je]});var t=we.get(je),e=t.items,a=t.type;cn(it.get(a),function(s){return we.get(s).dropTargetStyle},function(s){return we.get(s).dropTargetClasses});var n=_n(e);n===-1&&(n=bn),e=e.map(function(s){return s[pn]?Ge:s});function i(){Bi(),ea(je,e,{trigger:Da?We.DROPPED_OUTSIDE_OF_ANY:We.DROPPED_INTO_ZONE,id:Ge[De],source:He.POINTER}),je!==Te&&ea(Te,we.get(Te).items,{trigger:We.DROPPED_INTO_ANOTHER,id:Ge[De],source:He.POINTER}),eu(je.children[n]),lu()}cu(n,i)}function cu(t,e){var a=Qo(je.children[t]),n={x:a.left-parseFloat(Pe.style.left),y:a.top-parseFloat(Pe.style.top)},i=we.get(je),s=i.dropAnimationDurationMs,o="transform ".concat(s,"ms ease");Pe.style.transition=Pe.style.transition?Pe.style.transition+","+o:o,Pe.style.transform="translate3d(".concat(n.x,"px, ").concat(n.y,"px, 0)"),window.setTimeout(e,s)}function du(t,e){ya.push({dz:t,destroy:e}),window.requestAnimationFrame(function(){dr(t),document.body.appendChild(t)})}function lu(){Pe.remove(),dt.remove(),ya.length&&(X(function(){return["will destroy zones that were removed during drag",ya]}),ya.forEach(function(t){var e=t.dz,a=t.destroy;a(),e.remove()}),ya=[]),Pe=void 0,dt=void 0,Ge=void 0,fn=void 0,Te=void 0,bn=void 0,ta=void 0,je=void 0,yt=void 0,Ke=void 0,Rt=!1,Ri=!1,Bi=void 0,Da=!1}function uu(t,e){var a=!1,n={items:void 0,type:void 0,flipDurationMs:0,dragDisabled:!1,morphDisabled:!1,dropFromOthersDisabled:!1,dropTargetStyle:Go,dropTargetClasses:[],transformDraggedElement:function(){},centreDraggedOnCursor:!1};X(function(){return["dndzone good to go options: ".concat(gt(e),", config: ").concat(gt(n)),{node:t}]});var i=new Map;function s(){window.addEventListener("mousemove",c,{passive:!1}),window.addEventListener("touchmove",c,{passive:!1,capture:!1}),window.addEventListener("mouseup",r,{passive:!1}),window.addEventListener("touchend",r,{passive:!1})}function o(){window.removeEventListener("mousemove",c),window.removeEventListener("touchmove",c),window.removeEventListener("mouseup",r),window.removeEventListener("touchend",r)}function r(){o(),dt=void 0,yt=void 0,Ke=void 0}function c(u){u.preventDefault();var h=u.touches?u.touches[0]:u;Ke={x:h.clientX,y:h.clientY},(Math.abs(Ke.x-yt.x)>=$o||Math.abs(Ke.y-yt.y)>=$o)&&(o(),l())}function d(u){if(u.target!==u.currentTarget&&(u.target.value!==void 0||u.target.isContentEditable)){X(function(){return"won't initiate drag on a nested input element"});return}if(u.button){X(function(){return"ignoring none left click button: ".concat(u.button)});return}if(Rt){X(function(){return"cannot start a new drag before finalizing previous one"});return}u.stopPropagation();var h=u.touches?u.touches[0]:u;yt={x:h.clientX,y:h.clientY},Ke=Ht({},yt),dt=u.currentTarget,s()}function l(){X(function(){return["drag start config: ".concat(gt(n)),dt]}),Rt=!0;var u=i.get(dt);bn=u,Te=dt.parentElement;var h=Te.getRootNode(),f=h.body||h,b=n.items,y=n.type,_=n.centreDraggedOnCursor;Ge=Ht({},b[u]),fn=y,ta=Ht(Ht({},Ge),{},Ta({},pn,!0));var D=Ht(Ht({},ta),{},Ta({},De,Ct));Pe=Yl(dt,_&&Ke);function I(){Pe.parentElement?window.requestAnimationFrame(I):(f.appendChild(Pe),Pe.focus(),su(),dr(dt),f.appendChild(dt))}window.requestAnimationFrame(I),nn(Array.from(it.get(n.type)).filter(function(T){return T===Te||!we.get(T).dropFromOthersDisabled}),function(T){return we.get(T).dropTargetStyle},function(T){return we.get(T).dropTargetClasses}),b.splice(u,1,D),Bi=tu(Te),Tt(Te,b,{trigger:We.DRAG_STARTED,id:Ge[De],source:He.POINTER}),window.addEventListener("mousemove",dn,{passive:!1}),window.addEventListener("touchmove",dn,{passive:!1,capture:!1}),window.addEventListener("mouseup",aa,{passive:!1}),window.addEventListener("touchend",aa,{passive:!1})}function m(u){var h=u.items,f=h===void 0?void 0:h,b=u.flipDurationMs,y=b===void 0?0:b,_=u.type,D=_===void 0?au:_,I=u.dragDisabled,T=I===void 0?!1:I,k=u.morphDisabled,g=k===void 0?!1:k,p=u.dropFromOthersDisabled,v=p===void 0?!1:p,E=u.dropTargetStyle,H=E===void 0?Go:E,w=u.dropTargetClasses,W=w===void 0?[]:w,R=u.transformDraggedElement,G=R===void 0?function(){}:R,z=u.centreDraggedOnCursor,Z=z===void 0?!1:z;n.dropAnimationDurationMs=y,n.type&&D!==n.type&&qo(t,n.type),n.type=D,iu(t,D),n.items=Qt(f),n.dragDisabled=T,n.morphDisabled=g,n.transformDraggedElement=G,n.centreDraggedOnCursor=Z,a&&Rt&&!Ri&&(!Ol(H,n.dropTargetStyle)||!Rl(W,n.dropTargetClasses))&&(cn([t],function(){return n.dropTargetStyle},function(){return W}),nn([t],function(){return H},function(){return W})),n.dropTargetStyle=H,n.dropTargetClasses=Qt(W);function N(ie,he){return we.get(ie)?we.get(ie)[he]:n[he]}a&&Rt&&n.dropFromOthersDisabled!==v&&(v?cn([t],function(ie){return N(ie,"dropTargetStyle")},function(ie){return N(ie,"dropTargetClasses")}):nn([t],function(ie){return N(ie,"dropTargetStyle")},function(ie){return N(ie,"dropTargetClasses")})),n.dropFromOthersDisabled=v,we.set(t,n);for(var ue=_n(n.items),ce=function(he){var O=t.children[he];if(Jl(O,T),he===ue)return g||Zl(Pe,O,Ke.x,Ke.y,function(){return n.transformDraggedElement(Pe,Ge,he)}),Ql(O),"continue";O.removeEventListener("mousedown",yi.get(O)),O.removeEventListener("touchstart",yi.get(O)),T||(O.addEventListener("mousedown",d),O.addEventListener("touchstart",d),yi.set(O,d)),i.set(O,he),a||(a=!0)},ve=0;ve<t.children.length;ve++)var Fe=ce(ve)}return m(e),{update:function(h){X(function(){return"pointer dndzone will update newOptions: ".concat(gt(h))}),m(h)},destroy:function(){function h(){X(function(){return"pointer dndzone will destroy"}),qo(t,we.get(t).type),we.delete(t)}Rt?(X(function(){return"pointer dndzone will be scheduled for destruction"}),du(t,h)):h()}}}var an,xi={DND_ZONE_ACTIVE:"dnd-zone-active",DND_ZONE_DRAG_DISABLED:"dnd-zone-drag-disabled"},hr=(an={},Ta(an,xi.DND_ZONE_ACTIVE,"Tab to one the items and press space-bar or enter to start dragging it"),Ta(an,xi.DND_ZONE_DRAG_DISABLED,"This is a disabled drag and drop list"),an),mu="dnd-action-aria-alert",ye;function Ai(){ye||(ye=document.createElement("div"),function(){ye.id=mu,ye.style.position="fixed",ye.style.bottom="0",ye.style.left="0",ye.style.zIndex="-5",ye.style.opacity="0",ye.style.height="0",ye.style.width="0",ye.setAttribute("role","alert")}(),document.body.prepend(ye),Object.entries(hr).forEach(function(t){var e=hl(t,2),a=e[0],n=e[1];return document.body.prepend(pu(a,n))}))}function hu(){return Pi?null:(document.readyState==="complete"?Ai():window.addEventListener("DOMContentLoaded",Ai),Ht({},xi))}function gu(){Pi||!ye||(Object.keys(hr).forEach(function(t){var e;return(e=document.getElementById(t))===null||e===void 0?void 0:e.remove()}),ye.remove(),ye=void 0)}function pu(t,e){var a=document.createElement("div");return a.id=t,a.innerHTML="<p>".concat(e,"</p>"),a.style.display="none",a.style.position="fixed",a.style.zIndex="-5",a}function Jt(t){if(!Pi){ye||Ai(),ye.innerHTML="";var e=document.createTextNode(t);ye.appendChild(e),ye.style.display="none",ye.style.display="inline"}}var fu="--any--",Uo={outline:"rgba(255, 255, 102, 0.7) solid 2px"},Ye=!1,Di,Re,zt="",Ot,at,wt="",ln=new WeakSet,Vo=new WeakMap,Ko=new WeakMap,Mi=new Map,Ie=new Map,nt=new Map,un;function bu(t,e){X(function(){return"registering drop-zone if absent"}),nt.size===0&&(X(function(){return"adding global keydown and click handlers"}),un=hu(),window.addEventListener("keydown",gr),window.addEventListener("click",pr)),nt.has(e)||nt.set(e,new Set),nt.get(e).has(t)||(nt.get(e).add(t),Zo())}function Yo(t,e){X(function(){return"unregistering drop-zone"}),Re===t&&xa(),nt.get(e).delete(t),Jo(),nt.get(e).size===0&&nt.delete(e),nt.size===0&&(X(function(){return"removing global keydown and click handlers"}),window.removeEventListener("keydown",gr),window.removeEventListener("click",pr),un=void 0,gu())}function gr(t){if(!!Ye)switch(t.key){case"Escape":{xa();break}}}function pr(){!Ye||ln.has(document.activeElement)||(X(function(){return"clicked outside of any draggable"}),xa())}function _u(t){if(X(function(){return"zone focus"}),!!Ye){var e=t.currentTarget;if(e!==Re){zt=e.getAttribute("aria-label")||"";var a=Ie.get(Re),n=a.items,i=n.find(function(m){return m[De]===at}),s=n.indexOf(i),o=n.splice(s,1)[0],r=Ie.get(e),c=r.items,d=r.autoAriaDisabled;e.getBoundingClientRect().top<Re.getBoundingClientRect().top||e.getBoundingClientRect().left<Re.getBoundingClientRect().left?(c.push(o),d||Jt("Moved item ".concat(wt," to the end of the list ").concat(zt))):(c.unshift(o),d||Jt("Moved item ".concat(wt," to the beginning of the list ").concat(zt)));var l=Re;ea(l,n,{trigger:We.DROPPED_INTO_ANOTHER,id:at,source:He.KEYBOARD}),ea(e,c,{trigger:We.DROPPED_INTO_ZONE,id:at,source:He.KEYBOARD}),Re=e}}}function fr(){Mi.forEach(function(t,e){var a=t.update;return a(Ie.get(e))})}function xa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;X(function(){return"drop"}),Ie.get(Re).autoAriaDisabled||Jt("Stopped dragging item ".concat(wt)),ln.has(document.activeElement)&&document.activeElement.blur(),t&&Tt(Re,Ie.get(Re).items,{trigger:We.DRAG_STOPPED,id:at,source:He.KEYBOARD}),cn(nt.get(Di),function(e){return Ie.get(e).dropTargetStyle},function(e){return Ie.get(e).dropTargetClasses}),Ot=null,at=null,wt="",Di=null,Re=null,zt="",Ye=!1,fr()}function ku(t,e){var a={items:void 0,type:void 0,dragDisabled:!1,zoneTabIndex:0,dropFromOthersDisabled:!1,dropTargetStyle:Uo,dropTargetClasses:[],autoAriaDisabled:!1};function n(l,m,u){l.length<=1||l.splice(u,1,l.splice(m,1,l[u])[0])}function i(l){switch(X(function(){return["handling key down",l.key]}),l.key){case"Enter":case" ":{if((l.target.disabled!==void 0||l.target.href||l.target.isContentEditable)&&!ln.has(l.target))return;l.preventDefault(),l.stopPropagation(),Ye?xa():s(l);break}case"ArrowDown":case"ArrowRight":{if(!Ye)return;l.preventDefault(),l.stopPropagation();var m=Ie.get(t),u=m.items,h=Array.from(t.children),f=h.indexOf(l.currentTarget);X(function(){return["arrow down",f]}),f<h.length-1&&(a.autoAriaDisabled||Jt("Moved item ".concat(wt," to position ").concat(f+2," in the list ").concat(zt)),n(u,f,f+1),ea(t,u,{trigger:We.DROPPED_INTO_ZONE,id:at,source:He.KEYBOARD}));break}case"ArrowUp":case"ArrowLeft":{if(!Ye)return;l.preventDefault(),l.stopPropagation();var b=Ie.get(t),y=b.items,_=Array.from(t.children),D=_.indexOf(l.currentTarget);X(function(){return["arrow up",D]}),D>0&&(a.autoAriaDisabled||Jt("Moved item ".concat(wt," to position ").concat(D," in the list ").concat(zt)),n(y,D,D-1),ea(t,y,{trigger:We.DROPPED_INTO_ZONE,id:at,source:He.KEYBOARD}));break}}}function s(l){X(function(){return"drag start"}),r(l.currentTarget),Re=t,Di=a.type,Ye=!0;var m=Array.from(nt.get(a.type)).filter(function(h){return h===Re||!Ie.get(h).dropFromOthersDisabled});if(nn(m,function(h){return Ie.get(h).dropTargetStyle},function(h){return Ie.get(h).dropTargetClasses}),!a.autoAriaDisabled){var u="Started dragging item ".concat(wt,". Use the arrow keys to move it within its list ").concat(zt);m.length>1&&(u+=", or tab to another list in order to move the item into it"),Jt(u)}Tt(t,Ie.get(t).items,{trigger:We.DRAG_STARTED,id:at,source:He.KEYBOARD}),fr()}function o(l){!Ye||l.currentTarget!==Ot&&(l.stopPropagation(),xa(!1),s(l))}function r(l){var m=Ie.get(t),u=m.items,h=Array.from(t.children),f=h.indexOf(l);Ot=l,Ot.tabIndex=0,at=u[f][De],wt=h[f].getAttribute("aria-label")||""}function c(l){var m=l.items,u=m===void 0?[]:m,h=l.type,f=h===void 0?fu:h,b=l.dragDisabled,y=b===void 0?!1:b,_=l.zoneTabIndex,D=_===void 0?0:_,I=l.dropFromOthersDisabled,T=I===void 0?!1:I,k=l.dropTargetStyle,g=k===void 0?Uo:k,p=l.dropTargetClasses,v=p===void 0?[]:p,E=l.autoAriaDisabled,H=E===void 0?!1:E;a.items=Qt(u),a.dragDisabled=y,a.dropFromOthersDisabled=T,a.zoneTabIndex=D,a.dropTargetStyle=g,a.dropTargetClasses=v,a.autoAriaDisabled=H,a.type&&f!==a.type&&Yo(t,a.type),a.type=f,bu(t,f),H||(t.setAttribute("aria-disabled",y),t.setAttribute("role","list"),t.setAttribute("aria-describedby",y?un.DND_ZONE_DRAG_DISABLED:un.DND_ZONE_ACTIVE)),Ie.set(t,a),Ye?t.tabIndex=t===Re||Ot.contains(t)||a.dropFromOthersDisabled||Re&&a.type!==Ie.get(Re).type?-1:0:t.tabIndex=a.zoneTabIndex,t.addEventListener("focus",_u);for(var w=function(G){var z=t.children[G];ln.add(z),z.tabIndex=Ye?-1:0,H||z.setAttribute("role","listitem"),z.removeEventListener("keydown",Vo.get(z)),z.removeEventListener("click",Ko.get(z)),y||(z.addEventListener("keydown",i),Vo.set(z,i),z.addEventListener("click",o),Ko.set(z,o)),Ye&&a.items[G][De]===at&&(X(function(){return["focusing on",{i:G,focusedItemId:at}]}),Ot=z,Ot.tabIndex=0,z.focus())},W=0;W<t.children.length;W++)w(W)}c(e);var d={update:function(m){X(function(){return"keyboard dndzone will update newOptions: ".concat(gt(m))}),c(m)},destroy:function(){X(function(){return"keyboard dndzone will destroy"}),Yo(t,a.type),Ie.delete(t),Mi.delete(t)}};return Mi.set(t,d),d}function kn(t,e){Xo(e);var a=uu(t,e),n=ku(t,e);return{update:function(s){Xo(s),a.update(s),n.update(s)},destroy:function(){a.destroy(),n.destroy()}}}function Xo(t){var e=t.items,a=t.flipDurationMs,n=t.type,i=t.dragDisabled,s=t.morphDisabled,o=t.dropFromOthersDisabled,r=t.zoneTabIndex,c=t.dropTargetStyle,d=t.dropTargetClasses,l=t.transformDraggedElement,m=t.autoAriaDisabled,u=t.centreDraggedOnCursor,h=ml(t,["items","flipDurationMs","type","dragDisabled","morphDisabled","dropFromOthersDisabled","zoneTabIndex","dropTargetStyle","dropTargetClasses","transformDraggedElement","autoAriaDisabled","centreDraggedOnCursor"]);if(Object.keys(h).length>0&&console.warn("dndzone will ignore unknown options",h),!e)throw new Error("no 'items' key provided to dndzone");var f=e.find(function(b){return!{}.hasOwnProperty.call(b,De)});if(f)throw new Error("missing '".concat(De,"' property for item ").concat(gt(f)));if(d&&!Array.isArray(d))throw new Error("dropTargetClasses should be an array but instead it is a ".concat(wa(d),", ").concat(gt(d)));if(r&&!vu(r))throw new Error("zoneTabIndex should be a number but instead it is a ".concat(wa(r),", ").concat(gt(r)))}function vu(t){return!isNaN(t)&&function(e){return(e|0)===e}(parseFloat(t))}var Ma=require("obsidian");function yu(t){Y(t,"svelte-r3p86y",".property-block-container.svelte-r3p86y{display:flex;justify-content:space-between;align-items:center}.info.svelte-r3p86y{display:flex;flex-flow:column}.context.svelte-r3p86y{display:flex;align-items:center;gap:0.25rem;color:var(--text-muted)}.context-item.svelte-r3p86y{display:flex;align-items:center}")}function br(t){let e,a,n=t[0].headers.join(" | ")+"",i,s;return{c(){e=C("strong"),a=J("("),i=J(n),s=J(")")},m(o,r){S(o,e,r),x(e,a),x(e,i),x(e,s)},p(o,r){r&1&&n!==(n=o[0].headers.join(" | ")+"")&&me(i,n)},d(o){o&&M(e)}}}function _r(t){let e,a,n,i;return{c(){e=C("div"),A(e,"class","context-item heading svelte-r3p86y"),A(e,"aria-label","Has Heading")},m(s,o){S(s,e,o),n||(i=te(a=t[4].call(null,e)),n=!0)},d(s){s&&M(e),n=!1,i()}}}function kr(t){let e,a,n,i;return{c(){e=C("div"),A(e,"class","context-item conditioned svelte-r3p86y"),A(e,"aria-label","Conditioned")},m(s,o){S(s,e,o),n||(i=te(a=t[2].call(null,e)),n=!0)},d(s){s&&M(e),n=!1,i()}}}function vr(t){let e,a,n,i;return{c(){e=C("div"),A(e,"class","context-item callback svelte-r3p86y"),A(e,"aria-label","Has Callback")},m(s,o){S(s,e,o),n||(i=te(a=t[5].call(null,e)),n=!0)},d(s){s&&M(e),n=!1,i()}}}function yr(t){let e,a,n,i;return{c(){e=C("div"),A(e,"class","context-item dice svelte-r3p86y"),A(e,"aria-label","Will Parse for Dice Rolls")},m(s,o){S(s,e,o),n||(i=te(a=t[3].call(null,e)),n=!0)},d(s){s&&M(e),n=!1,i()}}}function wu(t){let e,a,n,i,s=t[1](t[0].type)+"",o,r,c,d,l,m=t[0].properties.join(", ")+"",u,h,f,b,y,_,D=t[0].type=="table"&&t[0].headers?.length&&br(t),I="heading"in t[0]&&_r(t),T=t[0].conditioned&&kr(t),k="callback"in t[0]&&vr(t),g="dice"in t[0]&&yr(t);return{c(){e=C("div"),a=C("div"),n=C("div"),i=C("span"),o=J(s),r=$(),D&&D.c(),c=$(),d=C("small"),l=C("em"),u=J(m),h=$(),f=C("small"),I&&I.c(),b=$(),T&&T.c(),y=$(),k&&k.c(),_=$(),g&&g.c(),A(a,"class","info svelte-r3p86y"),A(f,"class","context svelte-r3p86y"),A(e,"class","property-block-container svelte-r3p86y")},m(p,v){S(p,e,v),x(e,a),x(a,n),x(n,i),x(i,o),x(n,r),D&&D.m(n,null),x(a,c),x(a,d),x(d,l),x(l,u),x(e,h),x(e,f),I&&I.m(f,null),x(f,b),T&&T.m(f,null),x(f,y),k&&k.m(f,null),x(f,_),g&&g.m(f,null)},p(p,[v]){v&1&&s!==(s=p[1](p[0].type)+"")&&me(o,s),p[0].type=="table"&&p[0].headers?.length?D?D.p(p,v):(D=br(p),D.c(),D.m(n,null)):D&&(D.d(1),D=null),v&1&&m!==(m=p[0].properties.join(", ")+"")&&me(u,m),"heading"in p[0]?I||(I=_r(p),I.c(),I.m(f,b)):I&&(I.d(1),I=null),p[0].conditioned?T||(T=kr(p),T.c(),T.m(f,y)):T&&(T.d(1),T=null),"callback"in p[0]?k||(k=vr(p),k.c(),k.m(f,_)):k&&(k.d(1),k=null),"dice"in p[0]?g||(g=yr(p),g.c(),g.m(f,null)):g&&(g.d(1),g=null)},i:P,o:P,d(p){p&&M(e),D&&D.d(),I&&I.d(),T&&T.d(),k&&k.d(),g&&g.d()}}}function Tu(t,e,a){let{block:n}=e,i=d=>"display"in n?`${n.display} (${d[0].toUpperCase()+d.slice(1).toLowerCase()})`:d[0].toUpperCase()+d.slice(1).toLowerCase(),s=d=>{(0,Ma.setIcon)(d,"statblock-conditioned")},o=d=>{(0,Ma.setIcon)(d,"dice-roller-dice")},r=d=>{(0,Ma.setIcon)(d,"heading-glyph")},c=d=>{(0,Ma.setIcon)(d,"code-glyph")};return t.$$set=d=>{"block"in d&&a(0,n=d.block)},[n,i,s,o,r,c]}var zi=class extends q{constructor(e){super(),U(this,e,Tu,wu,j,{block:0},yu)}},wr=zi;var Li=require("obsidian");var Ar=ma(_a()),re=require("obsidian");var vn=require("obsidian");function Cu(t){Y(t,"svelte-1blh0v3",".creator-zone.svelte-1blh0v3{display:flex;justify-content:space-evenly;gap:1rem;flex-flow:row wrap}.header-container.svelte-1blh0v3{display:flex;align-items:center}")}function Tr(t,e,a){let n=t.slice();return n[12]=e[a],n}function Cr(t,e){let a,n,i=e[12].name+"",s,o,r,c,d,l,m=P,u,h;function f(){return e[8](e[12])}return{key:t,first:null,c(){a=C("div"),n=C("span"),s=J(i),o=$(),r=C("div"),d=$(),A(n,"class","table-header"),A(a,"class","header-container svelte-1blh0v3"),this.first=a},m(b,y){S(b,a,y),x(a,n),x(n,s),x(a,o),x(a,r),x(a,d),u||(h=[te(c=e[5].call(null,r)),Ee(r,"click",f)],u=!0)},p(b,y){e=b,y&1&&i!==(i=e[12].name+"")&&me(s,i)},r(){l=a.getBoundingClientRect()},f(){Ka(a),m()},a(){m(),m=Va(a,l,tn,{duration:Ni})},d(b){b&&M(a),u=!1,fe(h)}}}function xu(t){let e,a,n=[],i=new Map,s,o,r,c=t[0].filter(t[7]),d=l=>l[12].id;for(let l=0;l<c.length;l+=1){let m=Tr(t,c,l),u=d(m);i.set(u,n[l]=Cr(u,m))}return{c(){e=C("div"),a=C("section");for(let l=0;l<n.length;l+=1)n[l].c();A(a,"class","creator-zone svelte-1blh0v3"),A(e,"class","table-header-container")},m(l,m){S(l,e,m),x(e,a);for(let u=0;u<n.length;u+=1)n[u].m(a,null);o||(r=[te(s=kn.call(null,a,{items:t[0],flipDurationMs:Ni,dragDisabled:t[1],type:"table_headers"})),Ee(a,"consider",t[2]),Ee(a,"finalize",t[3])],o=!0)},p(l,[m]){if(m&17){c=l[0].filter(l[7]);for(let u=0;u<n.length;u+=1)n[u].r();n=Ya(n,m,d,1,l,c,i,a,zs,Cr,null,Tr);for(let u=0;u<n.length;u+=1)n[u].a()}s&&et(s.update)&&m&3&&s.update.call(null,{items:l[0],flipDurationMs:Ni,dragDisabled:l[1],type:"table_headers"})},i:P,o:P,d(l){l&&M(e);for(let m=0;m<n.length;m+=1)n[m].d();o=!1,fe(r)}}}var Ni=300;function Au(t,e,a){let n=ze(),{headers:i}=e,s=i.map(b=>({name:b,id:L()})),o=!1;function r(b){let{items:y,info:{source:_,trigger:D}}=b.detail;a(0,s=[...y])}function c(b){let{items:y,info:{source:_}}=b.detail;a(0,s=[...y]),n("sorted",s)}let d=b=>{(0,vn.setIcon)(b,"dropzone-grip")};function l(b){b.preventDefault(),a(1,o=!1)}let m=b=>{a(0,s=s.filter(y=>y.id!=b.id)),n("sorted",s)},u=b=>{new vn.ExtraButtonComponent(b).setIcon("cross-in-box")},h=b=>b.id!==Ct,f=b=>m(b);return t.$$set=b=>{"headers"in b&&a(6,i=b.headers)},[s,o,r,c,m,u,i,h,f]}var Fi=class extends q{constructor(e){super(),U(this,e,Au,xu,j,{headers:6},Cu)}},xr=Fi;var na=class extends re.Modal{constructor(a,n){super(a.app);this.plugin=a;this.advanced=this.plugin.settings.showAdvanced,n&&(this.block=(0,Ar.default)(n)),this.containerEl.addClass("statblock-edit-block")}get group(){return["group","inline"].contains(this.block.type)}onOpen(){this.titleEl.setText("Edit Block"),this.display()}buildProperties(a){if(a.empty(),!this.group){if(this.block.type=="subheading"){let n=a.createDiv("statblock-additional-container"),i="";new re.Setting(n).setHeading().setName("Link Monster Properties").addText(o=>o.setPlaceholder("property").setValue(i).onChange(r=>i=r)).addExtraButton(o=>o.setIcon("plus-with-circle").onClick(()=>{if(!i||!i.length){new re.Notice("A valid property must be supplied.");return}this.block.properties.push(i),this.buildProperties(a)}));let s=n.createDiv("additional");for(let o of this.block.properties)new re.Setting(s).setName(o).addExtraButton(r=>r.setIcon("trash").onClick(()=>{this.block.properties=this.block.properties.filter(c=>c!=o),this.buildProperties(a)}))}else new re.Setting(a).setName("Link Monster Property").addText(n=>n.setValue(this.block.properties[0]).onChange(i=>{this.block.properties[0]=i}));if((this.block.type=="property"||this.block.type=="saves")&&new re.Setting(this.contentEl).setName("Display Text").setDesc("This text will be used for the property name.").addText(n=>{n.setValue(this.block.display).onChange(i=>this.block.display=i)}),(this.block.type=="traits"||this.block.type=="text")&&new re.Setting(this.contentEl).setName("Section Heading").setDesc("This text will be used for the section heading. Can be left blank.").addText(n=>{n.setValue(this.block.heading).onChange(i=>this.block.heading=i)}),this.block.type=="table"){let n=a.createDiv("statblock-additional-container"),i="";new re.Setting(n).setHeading().setName("Table Headers").addText(o=>o.setPlaceholder("header").setValue(i).onChange(r=>i=r)).addExtraButton(o=>o.setIcon("plus-with-circle").onClick(()=>{if(!i||!i.length){new re.Notice("A valid property must be supplied.");return}this.block.headers.push(i),this.buildProperties(a)}));let s=n.createDiv("additional");new xr({target:s,props:{headers:this.block.headers}}).$on("sorted",o=>{this.block.headers=[...o.detail?.map(r=>r.name)??[]]}),new re.Setting(a).setName("Calculate Modifiers").setDesc("The block will not attempt to calculate modifiers for table values.").addToggle(o=>{o.setValue(this.block.calculate).onChange(r=>{this.block.calculate=r})})}if(!this.advanced)return;Ro.includes(this.block.type)&&new re.Setting(a).setName("Render as Markdown").setDesc(createFragment(n=>{n.createSpan({text:"The block will attempt to render as markdown."}),n.createEl("br"),n.createEl("strong",{text:"Cannot be used with the Dice option."})})).addToggle(n=>{n.setValue(this.block.markdown).onChange(i=>{this.block.markdown=i,i&&(this.block.dice=!1,this.display())})}),this.block.type=="text"&&(new re.Setting(a).setHeading().setName("Text to Show").setDesc(createFragment(n=>{n.createSpan({text:"The block will "}),n.createEl("strong",{text:"always"}),n.createSpan({text:" display the text entered here."})})),new re.TextAreaComponent(a).setValue(this.block.text).onChange(n=>{this.block.text=n})),this.block.type=="property"&&(new re.Setting(a).setHeading().setName("Callback").setDesc(createFragment(n=>{n.createSpan({text:"The block will run the callback and use the returned string as the property."}),n.createEl("br"),n.createSpan({text:"The callback will receive the "}),n.createEl("code",{text:"monster"}),n.createSpan({text:" parameter."})})),new re.TextAreaComponent(a).setValue(this.block.callback).onChange(n=>{this.block.callback=n}))}}buildConditions(a){a.empty(),new re.Setting(a).setName("Conditional").setDesc("The block will not be added if the associated properties are not present.").addToggle(n=>{n.setValue(this.block.conditioned).onChange(i=>{this.block.conditioned=i,this.buildConditions(a)})}),!this.block.conditioned&&!this.group&&new re.Setting(a).setName("Fallback").setDesc("If not present, this text will be displayed.").addText(n=>{this.block.fallback||(this.block.fallback="-"),n.setValue(this.block.fallback).onChange(i=>{this.block.fallback=i})}),new re.Setting(a).setName("Has Rule").setDesc("If present, the block will have a horizontal rule placed after it.").addToggle(n=>{n.setValue(this.block.hasRule).onChange(i=>this.block.hasRule=i)})}buildDice(a){a.empty(),!this.group&&this.plugin.canUseDiceRoller&&(new re.Setting(a).setName("Parse for Dice").setDesc("The plugin will attempt to add dice rollers as specified.").addToggle(n=>n.setValue(this.block.dice).onChange(i=>{this.block.dice=i,this.buildDice(a)})),this.block.dice&&new re.Setting(a.createDiv()).setName("Link Dice to Property").setDesc("The dice roller will parse this property instead of the original.").addText(n=>{n.setValue(this.block.diceProperty).onChange(i=>{this.block.diceProperty=i})})),this.advanced&&(new re.Setting(a).setHeading().setName("Dice Callback").setDesc(createFragment(n=>{n.createSpan({text:"The block will run the callback and use the returned values for the dice strings."}),n.createEl("br"),n.createSpan({text:"The callback will receive the "}),n.createEl("code",{text:"monster"}),n.createSpan({text:" and "}),n.createEl("code",{text:"property"}),n.createSpan({text:"parameters."})})),new re.TextAreaComponent(a).setValue(this.block.diceCallback).onChange(n=>{this.block.diceCallback=n}))}async display(){this.contentEl.empty(),new re.Setting(this.contentEl).setName("Show Advanced Options").addToggle(a=>{a.setValue(this.advanced??this.plugin.settings.showAdvanced).onChange(n=>{this.advanced=n,this.display()})}),this.buildProperties(this.contentEl.createDiv()),this.buildConditions(this.contentEl.createDiv()),this.buildDice(this.contentEl.createDiv()),this.buildButtons(this.contentEl.createDiv())}buildButtons(a){a.empty(),new re.Setting(a).addButton(n=>n.setCta().setIcon("checkmark").setTooltip("Save").onClick(()=>{this.saved=!0,this.close()})).addExtraButton(n=>n.setIcon("cross").setTooltip("Cancel").onClick(()=>{this.close()}))}buildProperty(a){}};function Du(t){Y(t,"svelte-e4nza4",".statblock-creator-container.svelte-e4nza4.svelte-e4nza4{display:flex;justify-content:space-between;width:100%;height:100%}body:not(.is-mobile) .statblock-creator-container.svelte-e4nza4:not(:hover)>.icons.svelte-e4nza4{visibility:hidden}.statblock-creator-block.svelte-e4nza4.svelte-e4nza4{width:100%}.icons.svelte-e4nza4.svelte-e4nza4{display:flex;justify-content:flex-end}.statblock-creator-container.svelte-e4nza4 .icons.svelte-e4nza4{align-items:center}.icon.svelte-e4nza4:not(:first-child) .clickable-icon{margin-left:0}")}function Dr(t){let e,a,n;return a=new wr({props:{block:t[0]}}),{c(){e=C("div"),se(a.$$.fragment),A(e,"class","statblock-creator-block svelte-e4nza4")},m(i,s){S(i,e,s),ne(a,e,null),n=!0},p(i,s){let o={};s&1&&(o.block=i[0]),a.$set(o)},i(i){n||(B(a.$$.fragment,i),n=!0)},o(i){F(a.$$.fragment,i),n=!1},d(i){i&&M(e),ae(a)}}}function Mu(t){let e,a=t[0],n,i,s,o,r,c,d,l,m,u,h=Dr(t);return{c(){e=C("div"),h.c(),n=$(),i=C("div"),s=C("div"),r=$(),c=C("div"),A(s,"class","icon svelte-e4nza4"),A(c,"class","icon svelte-e4nza4"),A(i,"class","icons svelte-e4nza4"),A(e,"class","statblock-creator-container svelte-e4nza4")},m(f,b){S(f,e,b),h.m(e,null),x(e,n),x(e,i),x(i,s),x(i,r),x(i,c),l=!0,m||(u=[te(o=t[1].call(null,s)),te(d=t[2].call(null,c))],m=!0)},p(f,[b]){b&1&&j(a,a=f[0])?(de(),F(h,1,1,P),le(),h=Dr(f),h.c(),B(h,1),h.m(e,n)):h.p(f,b)},i(f){l||(B(h),l=!0)},o(f){F(h),l=!1},d(f){f&&M(e),h.d(f),m=!1,fe(u)}}}function Su(t,e,a){let{block:n}=e,{plugin:i}=e,s=ze(),o=()=>{let d=new na(i,n);d.onClose=()=>{!d.saved||s("edited",d.block)},d.open()},r=d=>{new Li.ExtraButtonComponent(d).setIcon("pencil").setTooltip("Edit Block").onClick(()=>{o()})},c=d=>{new Li.ExtraButtonComponent(d).setIcon("trash").setTooltip("Delete Block").onClick(()=>s("trash",n))};return t.$$set=d=>{"block"in d&&a(0,n=d.block),"plugin"in d&&a(3,i=d.plugin)},[n,r,c,i]}var ji=class extends q{constructor(e){super(),U(this,e,Su,Mu,j,{block:0,plugin:3},Du)}},Mr=ji;var ia=require("obsidian");function Eu(t){Y(t,"svelte-1qfwxfu","body:not(.is-mobile) .creator-zone.svelte-1qfwxfu:not(.nested){max-width:75vw;max-height:65vh;overflow:auto}.inline.svelte-1qfwxfu{display:flex;justify-content:space-between}.block.svelte-1qfwxfu{display:flex;justify-content:flex-start;align-items:center}.item.svelte-1qfwxfu{display:flex;flex-flow:column;width:100%;padding:2px;margin:2px}.group.svelte-1qfwxfu{display:grid;grid-template-columns:1fr;border:2px dashed grey;min-height:2rem}.dropdown-icon.svelte-1qfwxfu{align-self:flex-start}.inline.svelte-1qfwxfu{display:inline-flex;width:100%;height:100%}.icon.svelte-1qfwxfu{display:flex}")}function Sr(t,e,a){let n=t.slice();return n[20]=e[a],n[21]=e,n[22]=a,n}function Iu(t){let e,a,n,i,s,o=t[20],r,c;function d(h){t[15](h,t[20])}function l(h){t[16](h)}let m={inline:t[20].type=="inline"};t[20].nested!==void 0&&(m.blocks=t[20].nested),t[1]!==void 0&&(m.plugin=t[1]),a=new yn({props:m}),Qe.push(()=>Jn(a,"blocks",d)),Qe.push(()=>Jn(a,"plugin",l));let u=Er(t);return{c(){e=C("div"),se(a.$$.fragment),s=$(),u.c(),r=oe(),A(e,"class","item svelte-1qfwxfu"),$e(e,"group",t[20].type=="group"||t[20].type=="inline")},m(h,f){S(h,e,f),ne(a,e,null),S(h,s,f),u.m(h,f),S(h,r,f),c=!0},p(h,f){t=h;let b={};f&9&&(b.inline=t[20].type=="inline"),!n&&f&9&&(n=!0,b.blocks=t[20].nested,Xn(()=>n=!1)),!i&&f&2&&(i=!0,b.plugin=t[1],Xn(()=>i=!1)),a.$set(b),f&9&&$e(e,"group",t[20].type=="group"||t[20].type=="inline"),f&9&&j(o,o=t[20])?(u.d(1),u=Er(t),u.c(),u.m(r.parentNode,r)):u.p(t,f)},i(h){c||(B(a.$$.fragment,h),c=!0)},o(h){F(a.$$.fragment,h),c=!1},d(h){h&&M(e),ae(a),h&&M(s),h&&M(r),u.d(h)}}}function Pu(t){let e,a,n;return a=new Mr({props:{plugin:t[1],block:t[20]}}),a.$on("trash",t[13]),a.$on("edited",t[14]),{c(){e=C("div"),se(a.$$.fragment),A(e,"class","item svelte-1qfwxfu")},m(i,s){S(i,e,s),ne(a,e,null),n=!0},p(i,s){let o={};s&2&&(o.plugin=i[1]),s&9&&(o.block=i[20]),a.$set(o)},i(i){n||(B(a.$$.fragment,i),n=!0)},o(i){F(a.$$.fragment,i),n=!1},d(i){i&&M(e),ae(a)}}}function Er(t){let e,a,n,i;return{c(){e=C("div"),A(e,"class","dropdown-icon svelte-1qfwxfu")},m(s,o){S(s,e,o),n||(i=te(a=t[11].call(null,e,t[20])),n=!0)},p(s,o){t=s,a&&et(a.update)&&o&9&&a.update.call(null,t[20])},d(s){s&&M(e),n=!1,i()}}}function Ir(t){let e,a,n;return a=new Ja({}),{c(){e=C("div"),se(a.$$.fragment),A(e,"aria-label","Block Has Rule")},m(i,s){S(i,e,s),ne(a,e,null),n=!0},i(i){n||(B(a.$$.fragment,i),n=!0)},o(i){F(a.$$.fragment,i),n=!1},d(i){i&&M(e),ae(a)}}}function Pr(t,e){let a,n,i,s,o,r,c,d,l,m,u,h,f=P,b,y,_,D=[Pu,Iu],I=[];function T(g,p){return g[20].type!="group"&&g[20].type!="inline"?0:1}d=T(e,-1),l=I[d]=D[d](e);let k=e[20].hasRule&&Ir(e);return{key:t,first:null,c(){a=C("div"),n=C("div"),i=C("div"),s=C("div"),c=$(),l.c(),m=$(),k&&k.c(),u=$(),A(s,"class","icon svelte-1qfwxfu"),A(s,"style",o=e[4]?"cursor: grab":"cursor: grabbing"),A(i,"class","block svelte-1qfwxfu"),A(n,"class","block-container"),this.first=a},m(g,p){S(g,a,p),x(a,n),x(n,i),x(i,s),x(i,c),I[d].m(i,null),x(n,m),k&&k.m(n,null),x(a,u),b=!0,y||(_=[te(r=e[7].call(null,s)),Ee(s,"mousedown",e[8]),Ee(s,"touchstart",e[8])],y=!0)},p(g,p){e=g,(!b||p&16&&o!==(o=e[4]?"cursor: grab":"cursor: grabbing"))&&A(s,"style",o);let v=d;d=T(e,p),d===v?I[d].p(e,p):(de(),F(I[v],1,1,()=>{I[v]=null}),le(),l=I[d],l?l.p(e,p):(l=I[d]=D[d](e),l.c()),B(l,1),l.m(i,null)),e[20].hasRule?k?p&9&&B(k,1):(k=Ir(e),k.c(),B(k,1),k.m(n,null)):k&&(de(),F(k,1,1,()=>{k=null}),le())},r(){h=a.getBoundingClientRect()},f(){Ka(a),f()},a(){f(),f=Va(a,h,tn,{duration:$i})},i(g){b||(B(l),B(k),b=!0)},o(g){F(l),F(k),b=!1},d(g){g&&M(a),I[d].d(),k&&k.d(),y=!1,fe(_)}}}function Wu(t){let e,a,n=[],i=new Map,s,o,r,c,d=t[0].filter(t[12]),l=m=>m[20].id;for(let m=0;m<d.length;m+=1){let u=Sr(t,d,m),h=l(u);i.set(h,n[m]=Pr(h,u))}return{c(){e=C("div"),a=C("section");for(let m=0;m<n.length;m+=1)n[m].c();A(a,"class","creator-zone svelte-1qfwxfu"),$e(a,"inline",t[2]),A(e,"class","creator")},m(m,u){S(m,e,u),x(e,a);for(let h=0;h<n.length;h+=1)n[h].m(a,null);o=!0,r||(c=[te(s=kn.call(null,a,{items:t[0],flipDurationMs:$i,dragDisabled:t[4]})),Ee(a,"consider",t[5]),Ee(a,"finalize",t[6])],r=!0)},p(m,[u]){if(u&1819){d=m[0].filter(m[12]),de();for(let h=0;h<n.length;h+=1)n[h].r();n=Ya(n,u,l,1,m,d,i,a,Ns,Pr,null,Sr);for(let h=0;h<n.length;h+=1)n[h].a();le()}s&&et(s.update)&&u&17&&s.update.call(null,{items:m[0],flipDurationMs:$i,dragDisabled:m[4]}),u&4&&$e(a,"inline",m[2])},i(m){if(!o){for(let u=0;u<d.length;u+=1)B(n[u]);o=!0}},o(m){for(let u=0;u<n.length;u+=1)F(n[u]);o=!1},d(m){m&&M(e);for(let u=0;u<n.length;u+=1)n[u].d();r=!1,fe(c)}}}var $i=300;function Hu(t,e,a){let n=ze(),{blocks:i=[]}=e,{inline:s=!1}=e,{plugin:o}=e,r=!0;function c(g){let{items:p,info:{source:v,trigger:E}}=g.detail;a(0,i=[...p]),v===He.KEYBOARD&&E===We.DRAG_STOPPED&&a(4,r=!0)}function d(g){let{items:p,info:{source:v}}=g.detail;a(0,i=[...p]),n("sorted",i),v===He.POINTER&&a(4,r=!0)}let l=g=>{(0,ia.setIcon)(g,"dropzone-grip")};function m(g){g.preventDefault(),a(4,r=!1)}let u=g=>{a(0,i=i.filter(p=>p.id!=g.id)),n("sorted",i)},h=g=>{let p=i.findIndex(v=>v.id==g.id);i.splice(p,1,g),a(0,i)},f=g=>{let p=new na(o,g);p.onClose=()=>{!p.saved||h(p.block)},p.open()},b=async(g,p)=>{if(!("nested"in g))return;let v=await en(o,p);v&&(g.nested=[...g.nested,v],a(0,i),n("sorted",i))},y=(g,p)=>{new ia.ExtraButtonComponent(g).setIcon("vertical-three-dots"),g.onclick=v=>{new ia.Menu(o.app).addItem(E=>{E.setTitle("Add").setIcon("plus-with-circle").onClick(H=>b(p,H))}).addItem(E=>E.setTitle("Edit").setIcon("pencil").onClick(()=>{f(p)})).addItem(E=>E.setTitle("Delete").setIcon("trash").onClick(()=>u(p))).showAtMouseEvent(v)}},_=g=>g.id!==Ct,D=g=>u(g.detail),I=g=>h(g.detail);function T(g,p){t.$$.not_equal(p.nested,g)&&(p.nested=g,a(0,i))}function k(g){o=g,a(1,o)}return t.$$set=g=>{"blocks"in g&&a(0,i=g.blocks),"inline"in g&&a(2,s=g.inline),"plugin"in g&&a(1,o=g.plugin)},[i,o,s,Ct,r,c,d,l,m,u,h,y,_,D,I,T,k]}var yn=class extends q{constructor(e){super(),U(this,e,Hu,Wu,j,{blocks:0,inline:2,plugin:1},Eu)}},Wr=yn;function Ou(t){Y(t,"svelte-fktbyg",".top.svelte-fktbyg{display:flex;align-items:center;justify-content:space-between}.name.svelte-fktbyg{display:flex;align-items:center}.name.svelte-fktbyg .buttons{display:flex;justify-content:flex-end;align-items:center}.bottom.svelte-fktbyg{display:flex;justify-content:flex-end;align-items:center;margin-top:0.5rem}")}function Hr(t){let e,a;return e=new Wr({props:{blocks:t[2],plugin:t[1]}}),e.$on("sorted",t[3]),{c(){se(e.$$.fragment)},m(n,i){ne(e,n,i),a=!0},p(n,i){let s={};i&4&&(s.blocks=n[2]),i&2&&(s.plugin=n[1]),e.$set(s)},i(n){a||(B(e.$$.fragment,n),a=!0)},o(n){F(e.$$.fragment,n),a=!1},d(n){ae(e,n)}}}function Ru(t){let e,a,n,i,s,o,r,c,d=t[0],l,m,u,h,f,b,y,_,D,I,T=Hr(t);return{c(){e=C("div"),a=C("div"),i=$(),s=C("div"),r=$(),c=C("div"),T.c(),l=$(),m=C("div"),u=C("div"),f=$(),b=C("div"),A(a,"class","name svelte-fktbyg"),A(s,"class","add"),A(e,"class","top svelte-fktbyg"),A(c,"class","creator-container"),A(u,"class","save"),A(b,"class","cancel"),A(m,"class","bottom svelte-fktbyg")},m(k,g){S(k,e,g),x(e,a),x(e,i),x(e,s),S(k,r,g),S(k,c,g),T.m(c,null),S(k,l,g),S(k,m,g),x(m,u),x(m,f),x(m,b),_=!0,D||(I=[te(n=t[4].call(null,a)),te(o=t[8].call(null,s)),Ee(s,"click",t[9]),te(h=t[5].call(null,u)),te(y=t[6].call(null,b))],D=!0)},p(k,[g]){g&1&&j(d,d=k[0])?(de(),F(T,1,1,P),le(),T=Hr(k),T.c(),B(T,1),T.m(c,null)):T.p(k,g)},i(k){_||(B(T),_=!0)},o(k){F(T),_=!1},d(k){k&&M(e),k&&M(r),k&&M(c),T.d(k),k&&M(l),k&&M(m),D=!1,fe(I)}}}function Bu(t,e,a){let n,{layout:i}=e,{plugin:s}=e,o=y=>[...y.map(_=>"nested"in _?[_.id,o(_.nested)].flat():[_.id]).flat()],r=ze(),c=y=>{a(0,i.blocks=[...y.detail],i)},d=!1,l=y=>{if(y.empty(),d){let _=i.name;new lt.TextComponent(y).setValue(_).onChange(I=>{_=I});let D=y.createDiv("buttons");new lt.ExtraButtonComponent(D).setIcon("checkmark").setTooltip("Save").onClick(()=>{d=!1,a(0,i.name=_,i),l(y)}),new lt.ExtraButtonComponent(D).setIcon("cross-in-box").setTooltip("Cancel").onClick(()=>{d=!1,l(y)})}else y.createEl("h3",{text:i.name}),new lt.ExtraButtonComponent(y.createDiv("buttons")).setIcon("pencil").setTooltip("Edit Name").onClick(()=>{d=!0,l(y)})},m=y=>{new lt.ButtonComponent(y).setIcon("checkmark").setCta().setTooltip("Save").onClick(()=>{r("saved")})},u=y=>{new lt.ExtraButtonComponent(y).setIcon("cross").setTooltip("Cancel").onClick(()=>{r("cancel")})},h=async y=>{let _=await en(s,y);_&&a(0,i.blocks=[...i.blocks,_],i)},f=y=>{new lt.ExtraButtonComponent(y).setIcon("plus-with-circle").setTooltip("Add Block")},b=y=>h(y);return t.$$set=y=>{"layout"in y&&a(0,i=y.layout),"plugin"in y&&a(1,s=y.plugin)},t.$$.update=()=>{if(t.$$.dirty&1){e:a(2,n=i.blocks)}},[i,s,n,c,l,m,u,h,f,b]}var Gi=class extends q{constructor(e){super(),U(this,e,Bu,Ru,j,{layout:0,plugin:1},Ou)}},Or=Gi;var Nt=require("obsidian");var wn=require("obsidian");var qe=require("obsidian");function zu(t){Y(t,"svelte-1m3i208",".top-level.svelte-1m3i208.svelte-1m3i208{display:flex;flex-flow:column nowrap}textarea.svelte-1m3i208.svelte-1m3i208{flex-grow:1;height:500px;max-height:50vh}.json.svelte-1m3i208.svelte-1m3i208{margin-bottom:1rem;display:flex;justify-content:flex-start;align-items:center}.json.svelte-1m3i208>div.svelte-1m3i208{border-radius:4px;margin:5px 0px}.active.svelte-1m3i208.svelte-1m3i208{background-color:var(--background-secondary-alt)}.buttons.svelte-1m3i208.svelte-1m3i208{margin-top:1rem;display:flex;justify-content:flex-end;align-items:center}")}function Rr(t){let e,a,n,i;return{c(){e=C("textarea"),e.value=a=t[6](),A(e,"class","svelte-1m3i208")},m(s,o){S(s,e,o),t[11](e),n||(i=Ee(e,"blur",t[12]),n=!0)},p:P,d(s){s&&M(e),t[11](null),n=!1,i()}}}function Nu(t){let e,a,n,i,s,o,r,c,d,l,m,u=t[0],h,f,b,y,_,D,I,T,k,g=Rr(t);return{c(){e=C("div"),a=C("h2"),a.textContent="Edit Monster",n=$(),i=C("div"),s=C("div"),o=C("div"),c=$(),d=C("div"),m=$(),g.c(),h=$(),f=C("div"),b=C("div"),_=$(),D=C("div"),A(o,"class","svelte-1m3i208"),$e(o,"active",!t[0]),A(d,"class","svelte-1m3i208"),$e(d,"active",t[0]),A(s,"class","json svelte-1m3i208"),A(i,"class","top-level svelte-1m3i208"),A(f,"class","buttons svelte-1m3i208"),A(e,"class","edit-monster-modal")},m(p,v){S(p,e,v),x(e,a),x(e,n),x(e,i),x(i,s),x(s,o),x(s,c),x(s,d),x(i,m),g.m(i,null),x(e,h),x(e,f),x(f,b),x(f,_),x(f,D),T||(k=[te(r=t[3].call(null,o)),Ee(o,"click",t[9]),te(l=t[2].call(null,d)),Ee(d,"click",t[10]),te(y=t[4].call(null,b)),te(I=t[5].call(null,D))],T=!0)},p(p,[v]){v&1&&$e(o,"active",!p[0]),v&1&&$e(d,"active",p[0]),v&1&&j(u,u=p[0])?(g.d(1),g=Rr(p),g.c(),g.m(i,null)):g.p(p,v)},i:P,o:P,d(p){p&&M(e),g.d(p),T=!1,fe(k)}}}function Fu(t,e,a){let n=ze(),{monster:i={}}=e,s=!1,o,r=_=>{new qe.ExtraButtonComponent(_).setIcon("code-glyph").setTooltip("JSON")},c=_=>{new qe.ExtraButtonComponent(_).setIcon("lines-of-text").setTooltip("YAML")},d=_=>{new qe.ButtonComponent(_).setIcon("checkmark").setTooltip("Save Changes").onClick(()=>{if(s)try{s?a(8,i=JSON.parse(o.value)):a(8,i=(0,qe.parseYaml)(o.value))}catch(D){console.error(D),new qe.Notice(`There was an error saving the creaturen
${D.message}`);return}n("save",i)})},l=_=>{new qe.ExtraButtonComponent(_).setIcon("cross").setTooltip("Cancel").onClick(()=>{n("cancel")})};function m(){return s?JSON.stringify(i,null,2):!i||!Object.keys(i??{})?.length?"":(0,qe.stringifyYaml)(i).trim()}function u(){try{s?a(8,i=JSON.parse(o.value)):a(8,i=(0,qe.parseYaml)(o.value))}catch(_){console.error(_)}}let h=()=>a(0,s=!1),f=()=>a(0,s=!0);function b(_){Qe[_?"unshift":"push"](()=>{o=_,a(1,o)})}let y=()=>u();return t.$$set=_=>{"monster"in _&&a(8,i=_.monster)},[s,o,r,c,d,l,m,u,i,h,f,b,y]}var qi=class extends q{constructor(e){super(),U(this,e,Fu,Nu,j,{monster:8},zu)}},Br=qi;var sa=class extends wn.Modal{constructor(a,n={}){super(a.app);this.plugin=a;this.monster=n}onOpen(){this._instance=new Br({target:this.contentEl,props:{monster:this.monster}}),this._instance.$on("cancel",()=>{this.close()}),this._instance.$on("save",async({detail:a})=>{if(!a.name){new wn.Notice("Creatures must be given a name.");return}await this.plugin.updateMonster(this.monster,a),this.close()})}onClose(){}close(){this._instance&&this._instance.$destroy(),super.close()}};var Tn=class extends Nt.Modal{constructor(a,n){super(a.app);this.plugin=a;this.monster=n}async display(){Nt.Platform.isMobile||(this.contentEl.style.maxWidth="85vw"),new vt(this.contentEl,this.monster,this.plugin,!1,null,this.plugin.defaultLayout)}onOpen(){this.display()}};var us=ma(_a());function Sa(t){let e=new Blob([t],{type:"text/javascript"}),a=URL.createObjectURL(e),n=new Worker(a);return URL.revokeObjectURL(a),n}function Ui(){return Sa('var dn=Object.create;var yt=Object.defineProperty;var Sn=Object.getOwnPropertyDescriptor;var vn=Object.getOwnPropertyNames;var Rn=Object.getPrototypeOf,yn=Object.prototype.hasOwnProperty;var Ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var En=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vn(t))!yn.call(e,i)&&i!==n&&yt(e,i,{get:()=>t[i],enumerable:!(r=Sn(t,i))||r.enumerable});return e};var _n=(e,t,n)=>(n=e!=null?dn(Rn(e)):{},En(t||!e||!e.__esModule?yt(n,"default",{value:e,enumerable:!0}):n,e));var _t=Ae(Et=>{Et.entityMap={lt:"<",gt:">",amp:"&",quot:\'"\',apos:"\'",Agrave:"\\xC0",Aacute:"\\xC1",Acirc:"\\xC2",Atilde:"\\xC3",Auml:"\\xC4",Aring:"\\xC5",AElig:"\\xC6",Ccedil:"\\xC7",Egrave:"\\xC8",Eacute:"\\xC9",Ecirc:"\\xCA",Euml:"\\xCB",Igrave:"\\xCC",Iacute:"\\xCD",Icirc:"\\xCE",Iuml:"\\xCF",ETH:"\\xD0",Ntilde:"\\xD1",Ograve:"\\xD2",Oacute:"\\xD3",Ocirc:"\\xD4",Otilde:"\\xD5",Ouml:"\\xD6",Oslash:"\\xD8",Ugrave:"\\xD9",Uacute:"\\xDA",Ucirc:"\\xDB",Uuml:"\\xDC",Yacute:"\\xDD",THORN:"\\xDE",szlig:"\\xDF",agrave:"\\xE0",aacute:"\\xE1",acirc:"\\xE2",atilde:"\\xE3",auml:"\\xE4",aring:"\\xE5",aelig:"\\xE6",ccedil:"\\xE7",egrave:"\\xE8",eacute:"\\xE9",ecirc:"\\xEA",euml:"\\xEB",igrave:"\\xEC",iacute:"\\xED",icirc:"\\xEE",iuml:"\\xEF",eth:"\\xF0",ntilde:"\\xF1",ograve:"\\xF2",oacute:"\\xF3",ocirc:"\\xF4",otilde:"\\xF5",ouml:"\\xF6",oslash:"\\xF8",ugrave:"\\xF9",uacute:"\\xFA",ucirc:"\\xFB",uuml:"\\xFC",yacute:"\\xFD",thorn:"\\xFE",yuml:"\\xFF",nbsp:"\\xA0",iexcl:"\\xA1",cent:"\\xA2",pound:"\\xA3",curren:"\\xA4",yen:"\\xA5",brvbar:"\\xA6",sect:"\\xA7",uml:"\\xA8",copy:"\\xA9",ordf:"\\xAA",laquo:"\\xAB",not:"\\xAC",shy:"\\xAD\\xAD",reg:"\\xAE",macr:"\\xAF",deg:"\\xB0",plusmn:"\\xB1",sup2:"\\xB2",sup3:"\\xB3",acute:"\\xB4",micro:"\\xB5",para:"\\xB6",middot:"\\xB7",cedil:"\\xB8",sup1:"\\xB9",ordm:"\\xBA",raquo:"\\xBB",frac14:"\\xBC",frac12:"\\xBD",frac34:"\\xBE",iquest:"\\xBF",times:"\\xD7",divide:"\\xF7",forall:"\\u2200",part:"\\u2202",exist:"\\u2203",empty:"\\u2205",nabla:"\\u2207",isin:"\\u2208",notin:"\\u2209",ni:"\\u220B",prod:"\\u220F",sum:"\\u2211",minus:"\\u2212",lowast:"\\u2217",radic:"\\u221A",prop:"\\u221D",infin:"\\u221E",ang:"\\u2220",and:"\\u2227",or:"\\u2228",cap:"\\u2229",cup:"\\u222A",int:"\\u222B",there4:"\\u2234",sim:"\\u223C",cong:"\\u2245",asymp:"\\u2248",ne:"\\u2260",equiv:"\\u2261",le:"\\u2264",ge:"\\u2265",sub:"\\u2282",sup:"\\u2283",nsub:"\\u2284",sube:"\\u2286",supe:"\\u2287",oplus:"\\u2295",otimes:"\\u2297",perp:"\\u22A5",sdot:"\\u22C5",Alpha:"\\u0391",Beta:"\\u0392",Gamma:"\\u0393",Delta:"\\u0394",Epsilon:"\\u0395",Zeta:"\\u0396",Eta:"\\u0397",Theta:"\\u0398",Iota:"\\u0399",Kappa:"\\u039A",Lambda:"\\u039B",Mu:"\\u039C",Nu:"\\u039D",Xi:"\\u039E",Omicron:"\\u039F",Pi:"\\u03A0",Rho:"\\u03A1",Sigma:"\\u03A3",Tau:"\\u03A4",Upsilon:"\\u03A5",Phi:"\\u03A6",Chi:"\\u03A7",Psi:"\\u03A8",Omega:"\\u03A9",alpha:"\\u03B1",beta:"\\u03B2",gamma:"\\u03B3",delta:"\\u03B4",epsilon:"\\u03B5",zeta:"\\u03B6",eta:"\\u03B7",theta:"\\u03B8",iota:"\\u03B9",kappa:"\\u03BA",lambda:"\\u03BB",mu:"\\u03BC",nu:"\\u03BD",xi:"\\u03BE",omicron:"\\u03BF",pi:"\\u03C0",rho:"\\u03C1",sigmaf:"\\u03C2",sigma:"\\u03C3",tau:"\\u03C4",upsilon:"\\u03C5",phi:"\\u03C6",chi:"\\u03C7",psi:"\\u03C8",omega:"\\u03C9",thetasym:"\\u03D1",upsih:"\\u03D2",piv:"\\u03D6",OElig:"\\u0152",oelig:"\\u0153",Scaron:"\\u0160",scaron:"\\u0161",Yuml:"\\u0178",fnof:"\\u0192",circ:"\\u02C6",tilde:"\\u02DC",ensp:"\\u2002",emsp:"\\u2003",thinsp:"\\u2009",zwnj:"\\u200C",zwj:"\\u200D",lrm:"\\u200E",rlm:"\\u200F",ndash:"\\u2013",mdash:"\\u2014",lsquo:"\\u2018",rsquo:"\\u2019",sbquo:"\\u201A",ldquo:"\\u201C",rdquo:"\\u201D",bdquo:"\\u201E",dagger:"\\u2020",Dagger:"\\u2021",bull:"\\u2022",hellip:"\\u2026",permil:"\\u2030",prime:"\\u2032",Prime:"\\u2033",lsaquo:"\\u2039",rsaquo:"\\u203A",oline:"\\u203E",euro:"\\u20AC",trade:"\\u2122",larr:"\\u2190",uarr:"\\u2191",rarr:"\\u2192",darr:"\\u2193",harr:"\\u2194",crarr:"\\u21B5",lceil:"\\u2308",rceil:"\\u2309",lfloor:"\\u230A",rfloor:"\\u230B",loz:"\\u25CA",spades:"\\u2660",clubs:"\\u2663",hearts:"\\u2665",diams:"\\u2666"}});var $t=Ae(Le=>{var ke=/[A-Z_a-z\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/,Ct=new RegExp("[\\\\-\\\\.0-9"+ke.source.slice(1,-1)+"\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]"),Tt=new RegExp("^"+ke.source+Ct.source+"*(?::"+ke.source+Ct.source+"*)?$"),he=0,Q=1,re=2,ge=3,ie=4,se=5,de=6,Ne=7;function ae(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,ae)}ae.prototype=new Error;ae.prototype.name=ae.name;function bt(){}bt.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),wt(t,t={}),Cn(e,t,n,r,this.errorHandler),r.endDocument()}};function Cn(e,t,n,r,i){function s(E){if(E>65535){E-=65536;var g=55296+(E>>10),te=56320+(E&1023);return String.fromCharCode(g,te)}else return String.fromCharCode(E)}function o(E){var g=E.slice(1,-1);return g in n?n[g]:g.charAt(0)==="#"?s(parseInt(g.substr(1).replace("x","0x"))):(i.error("entity not found:"+E),E)}function u(E){if(E>C){var g=e.substring(C,E).replace(/&#?\\w+;/g,o);S&&l(C),r.characters(g,0,E-C),C=E}}function l(E,g){for(;E>=m&&(g=d.exec(e));)c=g.index,m=c+g[0].length,S.lineNumber++;S.columnNumber=E-c+1}for(var c=0,m=0,d=/.*(?:\\r\\n?|\\n)|.*$/g,S=r.locator,_=[{currentNSMap:t}],y={},C=0;;){try{var v=e.indexOf("<",C);if(v<0){if(!e.substr(C).match(/^\\s*$/)){var O=r.doc,G=O.createTextNode(e.substr(C));O.appendChild(G),r.currentElement=G}return}switch(v>C&&u(v),e.charAt(v+1)){case"/":var T=e.indexOf(">",v+3),N=e.substring(v+2,T),b=_.pop();T<0?(N=e.substring(v+2).replace(/[\\s<].*/,""),i.error("end tag name: "+N+" is not complete:"+b.tagName),T=v+1+N.length):N.match(/\\s</)&&(N=N.replace(/[\\s<].*/,""),i.error("end tag name: "+N+" maybe not complete"),T=v+1+N.length);var W=b.localNSMap,w=b.tagName==N,k=w||b.tagName&&b.tagName.toLowerCase()==N.toLowerCase();if(k){if(r.endElement(b.uri,b.localName,N),W)for(var V in W)r.endPrefixMapping(V);w||i.fatalError("end tag name: "+N+" is not match the current start tagName:"+b.tagName)}else _.push(b);T++;break;case"?":S&&l(v),T=wn(e,v,r);break;case"!":S&&l(v),T=bn(e,v,r,i);break;default:S&&l(v);var h=new Dt,F=_[_.length-1].currentNSMap,T=Tn(e,v,h,F,o,i),L=h.length;if(!h.closed&&Nn(e,T,h.tagName,y)&&(h.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),S&&L){for(var Y=At(S,{}),X=0;X<L;X++){var z=h[X];l(z.offset),z.locator=At(S,{})}r.locator=Y,Nt(h,r,F)&&_.push(h),r.locator=S}else Nt(h,r,F)&&_.push(h);h.uri==="http://www.w3.org/1999/xhtml"&&!h.closed?T=An(e,T,h.tagName,o,r):T++}}catch(E){if(E instanceof ae)throw E;i.error("element parse error: "+E),T=-1}T>C?C=T:u(Math.max(v,C)+1)}}function At(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Tn(e,t,n,r,i,s){function o(_,y,C){_ in n.attributeNames&&s.fatalError("Attribute "+_+" redefined"),n.addValue(_,y,C)}for(var u,l,c=++t,m=he;;){var d=e.charAt(c);switch(d){case"=":if(m===Q)u=e.slice(t,c),m=ge;else if(m===re)m=ge;else throw new Error("attribute equal must after attrName");break;case"\'":case\'"\':if(m===ge||m===Q)if(m===Q&&(s.warning(\'attribute value must after "="\'),u=e.slice(t,c)),t=c+1,c=e.indexOf(d,t),c>0)l=e.slice(t,c).replace(/&#?\\w+;/g,i),o(u,l,t-1),m=se;else throw new Error("attribute value no end \'"+d+"\' match");else if(m==ie)l=e.slice(t,c).replace(/&#?\\w+;/g,i),o(u,l,t),s.warning(\'attribute "\'+u+\'" missed start quot(\'+d+")!!"),t=c+1,m=se;else throw new Error(\'attribute value must after "="\');break;case"/":switch(m){case he:n.setTagName(e.slice(t,c));case se:case de:case Ne:m=Ne,n.closed=!0;case ie:case Q:case re:break;default:throw new Error("attribute invalid close char(\'/\')")}break;case"":return s.error("unexpected end of input"),m==he&&n.setTagName(e.slice(t,c)),c;case">":switch(m){case he:n.setTagName(e.slice(t,c));case se:case de:case Ne:break;case ie:case Q:l=e.slice(t,c),l.slice(-1)==="/"&&(n.closed=!0,l=l.slice(0,-1));case re:m===re&&(l=u),m==ie?(s.warning(\'attribute "\'+l+\'" missed quot(")!\'),o(u,l.replace(/&#?\\w+;/g,i),t)):((r[""]!=="http://www.w3.org/1999/xhtml"||!l.match(/^(?:disabled|checked|selected)$/i))&&s.warning(\'attribute "\'+l+\'" missed value!! "\'+l+\'" instead!!\'),o(l,l,t));break;case ge:throw new Error("attribute value missed!!")}return c;case"\\x80":d=" ";default:if(d<=" ")switch(m){case he:n.setTagName(e.slice(t,c)),m=de;break;case Q:u=e.slice(t,c),m=re;break;case ie:var l=e.slice(t,c).replace(/&#?\\w+;/g,i);s.warning(\'attribute "\'+l+\'" missed quot(")!!\'),o(u,l,t);case se:m=de;break}else switch(m){case re:var S=n.tagName;(r[""]!=="http://www.w3.org/1999/xhtml"||!u.match(/^(?:disabled|checked|selected)$/i))&&s.warning(\'attribute "\'+u+\'" missed value!! "\'+u+\'" instead2!!\'),o(u,u,t),t=c,m=Q;break;case se:s.warning(\'attribute space is required"\'+u+\'"!!\');case de:m=Q,t=c;break;case ge:m=ie,t=c;break;case Ne:throw new Error("elements closed character \'/\' and \'>\' must be connected to")}}c++}}function Nt(e,t,n){for(var r=e.tagName,i=null,d=e.length;d--;){var s=e[d],o=s.qName,u=s.value,S=o.indexOf(":");if(S>0)var l=s.prefix=o.slice(0,S),c=o.slice(S+1),m=l==="xmlns"&&c;else c=o,l=null,m=o==="xmlns"&&"";s.localName=c,m!==!1&&(i==null&&(i={},wt(n,n={})),n[m]=i[m]=u,s.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(m,u))}for(var d=e.length;d--;){s=e[d];var l=s.prefix;l&&(l==="xml"&&(s.uri="http://www.w3.org/XML/1998/namespace"),l!=="xmlns"&&(s.uri=n[l||""]))}var S=r.indexOf(":");S>0?(l=e.prefix=r.slice(0,S),c=e.localName=r.slice(S+1)):(l=null,c=e.localName=r);var _=e.uri=n[l||""];if(t.startElement(_,c,r,e),e.closed){if(t.endElement(_,c,r),i)for(l in i)t.endPrefixMapping(l)}else return e.currentNSMap=n,e.localNSMap=i,!0}function An(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var s=e.indexOf("</"+n+">",t),o=e.substring(t+1,s);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),s):(o=o.replace(/&#?\\w+;/g,r),i.characters(o,0,o.length),s)}return t+1}function Nn(e,t,n,r){var i=r[n];return i==null&&(i=e.lastIndexOf("</"+n+">"),i<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function wt(e,t){for(var n in e)t[n]=e[n]}function bn(e,t,n,r){var i=e.charAt(t+2);switch(i){case"-":if(e.charAt(t+3)==="-"){var s=e.indexOf("-->",t+4);return s>t?(n.comment(e,t+4,s-t-4),s+3):(r.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var s=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,s-t-9),n.endCDATA(),s+3}var o=Dn(e,t),u=o.length;if(u>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],c=!1,m=!1;u>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],m=u>4&&o[4][0]):/^system$/i.test(o[2][0])&&(m=o[3][0]));var d=o[u-1];return n.startDTD(l,c,m),n.endDTD(),d.index+d[0].length}}return-1}function wn(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\\?(\\S*)\\s*([\\s\\S]*?)\\s*$/);if(i){var s=i[0].length;return n.processingInstruction(i[1],i[2]),r+2}else return-1}return-1}function Dt(){this.attributeNames={}}Dt.prototype={setTagName:function(e){if(!Tt.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!Tt.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function Dn(e,t){var n,r=[],i=/\'[^\']+\'|"[^"]+"|[^\\s<>\\/=]+=?|(\\/?\\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}Le.XMLReader=bt;Le.ParseError=ae});var Ke=Ae(Ee=>{function ve(e,t){for(var n in e)t[n]=e[n]}function P(e,t){var n=e.prototype;if(!(n instanceof t)){let i=function(){};var r=i;i.prototype=t.prototype,i=new i,ve(n,i),e.prototype=n=i}n.constructor!=e&&(typeof e!="function"&&console.error("unknow Class:"+e),n.constructor=e)}var $n="http://www.w3.org/1999/xhtml",U={},j=U.ELEMENT_NODE=1,ce=U.ATTRIBUTE_NODE=2,be=U.TEXT_NODE=3,Ut=U.CDATA_SECTION_NODE=4,Ft=U.ENTITY_REFERENCE_NODE=5,xn=U.ENTITY_NODE=6,kt=U.PROCESSING_INSTRUCTION_NODE=7,Lt=U.COMMENT_NODE=8,Gt=U.DOCUMENT_NODE=9,Wt=U.DOCUMENT_TYPE_NODE=10,K=U.DOCUMENT_FRAGMENT_NODE=11,Mn=U.NOTATION_NODE=12,x={},D={},ia=x.INDEX_SIZE_ERR=(D[1]="Index size error",1),sa=x.DOMSTRING_SIZE_ERR=(D[2]="DOMString size error",2),In=x.HIERARCHY_REQUEST_ERR=(D[3]="Hierarchy request error",3),aa=x.WRONG_DOCUMENT_ERR=(D[4]="Wrong document",4),oa=x.INVALID_CHARACTER_ERR=(D[5]="Invalid character",5),ca=x.NO_DATA_ALLOWED_ERR=(D[6]="No data allowed",6),la=x.NO_MODIFICATION_ALLOWED_ERR=(D[7]="No modification allowed",7),On=x.NOT_FOUND_ERR=(D[8]="Not found",8),ua=x.NOT_SUPPORTED_ERR=(D[9]="Not supported",9),xt=x.INUSE_ATTRIBUTE_ERR=(D[10]="Attribute in use",10),ma=x.INVALID_STATE_ERR=(D[11]="Invalid state",11),pa=x.SYNTAX_ERR=(D[12]="Syntax error",12),fa=x.INVALID_MODIFICATION_ERR=(D[13]="Invalid modification",13),ha=x.NAMESPACE_ERR=(D[14]="Invalid namespace",14),ga=x.INVALID_ACCESS_ERR=(D[15]="Invalid access",15);function ne(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,D[e]),this.message=D[e],Error.captureStackTrace&&Error.captureStackTrace(this,ne);return n.code=e,t&&(this.message=this.message+": "+t),n}ne.prototype=Error.prototype;ve(x,ne);function J(){}J.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)oe(this[r],n,e,t);return n.join("")}};function le(e,t){this._node=e,this._refresh=t,We(this)}function We(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);Qt(e,"length",n.length),ve(n,e),e._inc=t}}le.prototype.item=function(e){return We(this),this[e]};P(le,J);function we(){}function jt(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function Mt(e,t,n,r){if(r?t[jt(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&Vt(i,e,r),Pn(i,e,n))}}function It(e,t,n){var r=jt(t,n);if(r>=0){for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var s=e.ownerDocument;s&&(Vt(s,e,n),n.ownerElement=null)}}else throw ne(On,new Error(e.tagName+"@"+n))}we.prototype={length:0,item:J.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ne(xt);var n=this.getNamedItem(e.nodeName);return Mt(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new ne(xt);return n=this.getNamedItemNS(e.namespaceURI,e.localName),Mt(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return It(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return It(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}};function Bt(e){if(this._features={},e)for(var t in e)this._features=e[t]}Bt.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!!(n&&(!t||t in n))},createDocument:function(e,t,n){var r=new Re;if(r.implementation=this,r.childNodes=new J,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new He;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}};function M(){}M.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Ht(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return zt(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Ge(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==be&&e.nodeType==be?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(n[r]==e)return r}t=t.nodeType==ce?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==ce?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function Ot(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e==\'"\'&&"&quot;"||"&#"+e.charCodeAt()+";"}ve(U,M);ve(U,M.prototype);function Se(e,t){if(t(e))return!0;if(e=e.firstChild)do if(Se(e,t))return!0;while(e=e.nextSibling)}function Re(){}function Pn(e,t,n){e&&e._inc++;var r=n.namespaceURI;r=="http://www.w3.org/2000/xmlns/"&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function Vt(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;i=="http://www.w3.org/2000/xmlns/"&&delete t._nsMap[n.prefix?n.localName:""]}function je(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,s=0;i;)r[s++]=i,i=i.nextSibling;r.length=s}}}function zt(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,je(e.ownerDocument,e),t}function Ht(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===K){var i=t.firstChild;if(i==null)return t;var s=t.lastChild}else i=s=t;var o=n?n.previousSibling:e.lastChild;i.previousSibling=o,s.nextSibling=n,o?o.nextSibling=i:e.firstChild=i,n==null?e.lastChild=s:n.previousSibling=s;do i.parentNode=e;while(i!==s&&(i=i.nextSibling));return je(e.ownerDocument||e,e),t.nodeType==K&&(t.firstChild=t.lastChild=null),t}function Un(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);var r=e.lastChild}var r=e.lastChild;return t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,je(e.ownerDocument,e,t),t}Re.prototype={nodeName:"#document",nodeType:Gt,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==K){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return this.documentElement==null&&e.nodeType==j&&(this.documentElement=e),Ht(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),zt(this,e)},importNode:function(e,t){return qt(this,e,t)},getElementById:function(e){var t=null;return Se(this.documentElement,function(n){if(n.nodeType==j&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=new RegExp("(^|\\\\s)"+e+"(\\\\s|$)");return new le(this,function(n){var r=[];return Se(n.documentElement,function(i){i!==n&&i.nodeType==j&&t.test(i.getAttribute("class"))&&r.push(i)}),r})},createElement:function(e){var t=new ue;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new J;var n=t.attributes=new we;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new $e;return e.ownerDocument=this,e.childNodes=new J,e},createTextNode:function(e){var t=new Be;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Ve;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ze;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Xe;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new De;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Ye;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new ue,r=t.split(":"),i=n.attributes=new we;return n.childNodes=new J,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new De,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}};P(Re,M);function ue(){this._nsMap={}}ue.prototype={nodeType:j,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===K?this.insertBefore(e,null):Un(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new le(this,function(t){var n=[];return Se(t,function(r){r!==t&&r.nodeType==j&&(e==="*"||r.tagName==e)&&n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new le(this,function(n){var r=[];return Se(n,function(i){i!==n&&i.nodeType===j&&(e==="*"||i.namespaceURI===e)&&(t==="*"||i.localName==t)&&r.push(i)}),r})}};Re.prototype.getElementsByTagName=ue.prototype.getElementsByTagName;Re.prototype.getElementsByTagNameNS=ue.prototype.getElementsByTagNameNS;P(ue,M);function De(){}De.prototype.nodeType=ce;P(De,M);function ye(){}ye.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(D[In])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};P(ye,M);function Be(){}Be.prototype={nodeName:"#text",nodeType:be,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}};P(Be,ye);function Ve(){}Ve.prototype={nodeName:"#comment",nodeType:Lt};P(Ve,ye);function ze(){}ze.prototype={nodeName:"#cdata-section",nodeType:Ut};P(ze,ye);function He(){}He.prototype.nodeType=Wt;P(He,M);function Yt(){}Yt.prototype.nodeType=Mn;P(Yt,M);function Xt(){}Xt.prototype.nodeType=xn;P(Xt,M);function Ye(){}Ye.prototype.nodeType=Ft;P(Ye,M);function $e(){}$e.prototype.nodeName="#document-fragment";$e.prototype.nodeType=K;P($e,M);function Xe(){}Xe.prototype.nodeType=kt;P(Xe,M);function Kt(){}Kt.prototype.serializeToString=function(e,t,n){return Zt.call(e,t,n)};M.prototype.toString=Zt;function Zt(e,t){var n=[],r=this.nodeType==9&&this.documentElement||this,i=r.prefix,s=r.namespaceURI;if(s&&i==null){var i=r.lookupPrefix(s);if(i==null)var o=[{namespace:s,prefix:null}]}return oe(this,n,e,t,o),n.join("")}function Pt(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i||r==="xml"&&i==="http://www.w3.org/XML/1998/namespace"||i=="http://www.w3.org/2000/xmlns/")return!1;for(var s=n.length;s--;){var o=n[s];if(o.prefix==r)return o.namespace!=i}return!0}function oe(e,t,n,r,i){if(r)if(e=r(e),e){if(typeof e=="string"){t.push(e);return}}else return;switch(e.nodeType){case j:i||(i=[]);var s=i.length,o=e.attributes,u=o.length,y=e.firstChild,l=e.tagName;n=$n===e.namespaceURI||n,t.push("<",l);for(var c=0;c<u;c++){var m=o.item(c);m.prefix=="xmlns"?i.push({prefix:m.localName,namespace:m.value}):m.nodeName=="xmlns"&&i.push({prefix:"",namespace:m.value})}for(var c=0;c<u;c++){var m=o.item(c);if(Pt(m,n,i)){var d=m.prefix||"",S=m.namespaceURI,_=d?" xmlns:"+d:" xmlns";t.push(_,\'="\',S,\'"\'),i.push({prefix:d,namespace:S})}oe(m,t,n,r,i)}if(Pt(e,n,i)){var d=e.prefix||"",S=e.namespaceURI;if(S){var _=d?" xmlns:"+d:" xmlns";t.push(_,\'="\',S,\'"\'),i.push({prefix:d,namespace:S})}}if(y||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),n&&/^script$/i.test(l))for(;y;)y.data?t.push(y.data):oe(y,t,n,r,i),y=y.nextSibling;else for(;y;)oe(y,t,n,r,i),y=y.nextSibling;t.push("</",l,">")}else t.push("/>");return;case Gt:case K:for(var y=e.firstChild;y;)oe(y,t,n,r,i),y=y.nextSibling;return;case ce:return t.push(" ",e.name,\'="\',e.value.replace(/[<&"]/g,Ot),\'"\');case be:return t.push(e.data.replace(/[<&]/g,Ot).replace(/]]>/g,"]]&gt;"));case Ut:return t.push("<![CDATA[",e.data,"]]>");case Lt:return t.push("<!--",e.data,"-->");case Wt:var C=e.publicId,v=e.systemId;if(t.push("<!DOCTYPE ",e.name),C)t.push(" PUBLIC ",C),v&&v!="."&&t.push(" ",v),t.push(">");else if(v&&v!=".")t.push(" SYSTEM ",v,">");else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case kt:return t.push("<?",e.target," ",e.data,"?>");case Ft:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function qt(e,t,n){var r;switch(t.nodeType){case j:r=t.cloneNode(!1),r.ownerDocument=e;case K:break;case ce:n=!0;break}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var i=t.firstChild;i;)r.appendChild(qt(e,i,n)),i=i.nextSibling;return r}function Ge(e,t,n){var r=new t.constructor;for(var i in t){var s=t[i];typeof s!="object"&&s!=r[i]&&(r[i]=s)}switch(t.childNodes&&(r.childNodes=new J),r.ownerDocument=e,r.nodeType){case j:var o=t.attributes,u=r.attributes=new we,l=o.length;u._ownerElement=r;for(var c=0;c<l;c++)r.setAttributeNode(Ge(e,o.item(c),!0));break;case ce:n=!0}if(n)for(var m=t.firstChild;m;)r.appendChild(Ge(e,m,n)),m=m.nextSibling;return r}function Qt(e,t,n){e[t]=n}try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case j:case K:var n=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};da=e,Object.defineProperty(le.prototype,"length",{get:function(){return We(this),this.$$length}}),Object.defineProperty(M.prototype,"textContent",{get:function(){return e(this)},set:function(t){switch(this.nodeType){case j:case K:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),Qt=function(t,n,r){t["$$"+n]=r}}}catch(e){}var da;Ee.Node=M;Ee.DOMException=ne;Ee.DOMImplementation=Bt;Ee.XMLSerializer=Kt});var nn=Ae(Ce=>{function en(e){this.options=e||{locator:{}}}en.prototype.parseFromString=function(e,t){var n=this.options,r=new Ln,i=n.domBuilder||new _e,s=n.errorHandler,o=n.locator,u=n.xmlns||{},l=/\\/x?html?$/.test(t),c=l?kn.entityMap:{lt:"<",gt:">",amp:"&",quot:\'"\',apos:"\'"};return o&&i.setDocumentLocator(o),r.errorHandler=Fn(s,i,o),r.domBuilder=n.domBuilder||i,l&&(u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",e&&typeof e=="string"?r.parse(e,u,c):r.errorHandler.error("invalid doc source"),i.doc};function Fn(e,t,n){if(!e){if(t instanceof _e)return t;e=t}var r={},i=e instanceof Function;n=n||{};function s(o){var u=e[o];!u&&i&&(u=e.length==2?function(l){e(o,l)}:e),r[o]=u&&function(l){u("[xmldom "+o+"] "+l+Ze(n))}||function(){}}return s("warning"),s("error"),s("fatalError"),r}function _e(){this.cdata=!1}function me(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}_e.prototype={startDocument:function(){this.doc=new Wn().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,s=i.createElementNS(e,n||t),o=r.length;xe(this,s),this.currentElement=s,this.locator&&me(this.locator,s);for(var u=0;u<o;u++){var e=r.getURI(u),l=r.getValue(u),n=r.getQName(u),c=i.createAttributeNS(e,n);this.locator&&me(r.getLocator(u),c),c.value=c.nodeValue=l,s.setAttributeNode(c)}},endElement:function(e,t,n){var r=this.currentElement,i=r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&me(this.locator,n),xe(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=Jt.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&me(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=Jt.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&me(this.locator,r),xe(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&me(this.locator,i),xe(this,i)}},warning:function(e){console.warn("[xmldom warning] "+e,Ze(this.locator))},error:function(e){console.error("[xmldom error] "+e,Ze(this.locator))},fatalError:function(e){throw new Gn(e,this.locator)}};function Ze(e){if(e)return`\n@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function Jt(e,t,n){return typeof e=="string"?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\\w+/g,function(e){_e.prototype[e]=function(){return null}});function xe(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}var kn=_t(),tn=$t(),Ln=tn.XMLReader,Gn=tn.ParseError,Wn=Ce.DOMImplementation=Ke().DOMImplementation;Ce.XMLSerializer=Ke().XMLSerializer;Ce.DOMParser=en;Ce.__DOMHandler=_e});var sn=_n(nn());async function an(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=async i=>{let s=i.target.result,u=new sn.DOMParser().parseFromString(s,"application/xml").getElementsByTagName("monster"),l=[];if(!!u.length){for(let c of Array.from(u))try{let m={image:null,name:$(c,"name"),size:Yn(c),type:$(c,"type"),subtype:$(c,"subtype"),alignment:$(c,"alignment"),ac:Xn(c),hp:Number(rn(c,"hp")),hit_dice:rn(c,"hit_dice"),speed:$(c,"speed"),stats:[Number($(c,"str")),Number($(c,"dex")),Number($(c,"con")),Number($(c,"int")),Number($(c,"wis")),Number($(c,"cha"))],saves:zn(c),skillsaves:Bn(c),damage_vulnerabilities:$(c,"vulnerable"),damage_resistances:$(c,"resist"),damage_immunities:$(c,"immune"),condition_immunities:$(c,"conditionImmune"),senses:$(c,"senses"),languages:$(c,"languages"),cr:$(c,"cr"),traits:Me(c,"trait"),spells:jn(c),actions:Me(c,"action"),legendary_actions:Me(c,"legendary"),reactions:Me(c,"reaction"),source:Kn(c)};l.push(m)}catch(m){console.error(m);continue}t(l)}},r.readAsText(e)})}function $(e,t){let n=e.getElementsByTagName(t);if(n&&n.length)return n[0].textContent}function Me(e,t){var i;if(!((i=e.getElementsByTagName(t))!=null&&i.length))return[];let n=e.getElementsByTagName(t),r=[];for(let s of Array.from(n)){let o=s.getElementsByTagName("name");if(!o||!o.length||!o[0].textContent||o[0].textContent.includes("Spellcasting"))continue;let u=[],l=s.getElementsByTagName("text");for(let c of Array.from(l))u.push(c.textContent);r.push({name:o[0].textContent,desc:u.join(" ")})}return r}function jn(e){var r;if(!((r=e.getElementsByTagName("trait"))!=null&&r.length))return[];let n=Array.from(e.getElementsByTagName("trait")).find(i=>{var s;return(s=i.getElementsByTagName("name")[0])==null?void 0:s.textContent.includes("Spellcasting")});return n?Array.from(n.getElementsByTagName("text")).map(i=>i.textContent.replace(/(&#8226;|\u2022)/u,"").trim()).filter(i=>i.length):[]}function Bn(e){var r;if(!((r=e.getElementsByTagName("skill"))!=null&&r.length))return[];let t=e.getElementsByTagName("skill")[0].textContent.split(", "),n=[];return t.forEach(i=>{let s=i.split(/\\s[\\+\\-]/);n.push({[s[0]]:Number(s[1])})}),n}var Vn={Str:"strength",Dex:"dexterity",Con:"constitution",Int:"intelligence",Wis:"wisdom",Cha:"charisma"};function zn(e){var r;if(!((r=e.getElementsByTagName("save"))!=null&&r.length))return[];let t=e.getElementsByTagName("save")[0].textContent.split(", "),n=[];return t.forEach(i=>{let s=i.split(/\\s[\\+\\-]/);n.push({[Vn[s[0]]]:Number(s[1])})}),n}function rn(e,t){var s,o;if(!((s=e.getElementsByTagName("hp"))!=null&&s.length))return"";let n=e.getElementsByTagName("hp")[0].textContent,[,r,i]=(o=n.match(/(\\d+) \\(([\\s\\S]+)\\)/))!=null?o:[,"",""];return{hp:r,hit_dice:i}[t]}var Hn={T:"tiny",S:"small",M:"medium",L:"large",H:"huge",G:"gargantuan"};function Yn(e){var t;return e.getElementsByTagName("size")&&(t=Hn[e.getElementsByTagName("size")[0].textContent])!=null?t:""}function Xn(e){var t;if(e.getElementsByTagName("ac")){let[,n]=(t=e.getElementsByTagName("ac")[0])==null?void 0:t.textContent.match(/(\\d+)/);return Number(n)}return 0}function Kn(e){var n,r,i,s,o,u;let t="Unknown";if((n=e.getElementsByTagName("source"))!=null&&n.length)t=e.getElementsByTagName("source")[0].textContent;else if(((r=e.getElementsByTagName("trait"))==null?void 0:r.length)&&Array.from(e.getElementsByTagName("trait")).find(l=>{var c;return((c=l.getElementsByTagName("name"))==null?void 0:c[0].textContent)=="Source"})){let l=Array.from(e.getElementsByTagName("trait")).find(c=>{var m,d;return((d=(m=c.getElementsByTagName("name"))==null?void 0:m[0])==null?void 0:d.textContent)=="Source"});t=(o=(s=(i=l==null?void 0:l.getElementsByTagName("text"))==null?void 0:i[0])==null?void 0:s.textContent)==null?void 0:o.replace(/p. \\d+/,"").trim()}else if((u=e.getElementsByTagName("description"))!=null&&u.length){let l=e.getElementsByTagName("description"),c="Source: ";if(l[0].textContent.includes(c)){let m=l[0].textContent.lastIndexOf(c);t=l[0].textContent.slice(m+c.length).split(/, ?/)[0]}}return t}var Zn={STR:"strength",DEX:"dexterity",CON:"constitution",INT:"intelligence",WIS:"wisdom",CHA:"charisma"};async function on(e){return new Promise((t,n)=>{let r=new FileReader,i=[];r.onload=async s=>{var o,u,l,c,m,d,S,_,y,C,v,O,G,N,b,W,w,k,V,h,F,T,L,Y,X,z,E,g,te,R,q,et,tt,nt,rt,it,st,at,ot,ct,lt,ut,mt,pt,ft,ht,gt,dt,St,vt,Rt;try{let Pe=JSON.parse(s.target.result),hn=Object.keys(Pe).filter(Ue=>/^Creatures\\./.test(Ue));for(let Ue of hn)try{let A=Pe[Ue],gn={name:A.Name,source:(o=A.Source)!=null&&o.trim().length?(u=A.Source)==null?void 0:u.trim():"Unknown",type:(m=(c=(l=A.Type)==null?void 0:l.split(/,\\s?/))==null?void 0:c[0])==null?void 0:m.trim(),subtype:"",size:"",alignment:(_=(S=(d=A.Type)==null?void 0:d.split(/,\\s?/))==null?void 0:S[1])==null?void 0:_.trim(),hp:(y=A.HP)==null?void 0:y.Value,hit_dice:(O=(v=(C=A.HP)==null?void 0:C.Notes)==null?void 0:v.replace(/([()])/g,""))==null?void 0:O.trim(),ac:A.AC.Value,speed:(N=(G=A.Speed)==null?void 0:G.join(", "))==null?void 0:N.trim(),stats:Object.values((b=A.Abilities)!=null?b:{}),damage_immunities:(V=(k=(w=(W=A.DamageImmunities)==null?void 0:W.join("; "))==null?void 0:w.toLowerCase())==null?void 0:k.trim())!=null?V:"",damage_resistances:(L=(T=(F=(h=A.DamageResistances)==null?void 0:h.join(", "))==null?void 0:F.toLowerCase())==null?void 0:T.trim())!=null?L:"",damage_vulnerabilities:(E=(z=(X=(Y=A.DamageVulnerabilities)==null?void 0:Y.join(", "))==null?void 0:X.toLowerCase())==null?void 0:z.trim())!=null?E:"",condition_immunities:(q=(R=(te=(g=A.ConditionImmunities)==null?void 0:g.join(", "))==null?void 0:te.toLowerCase())==null?void 0:R.trim())!=null?q:"",saves:(tt=(et=A.Saves)==null?void 0:et.map(({Name:I,Modifier:Fe})=>({[Zn[I]]:Fe})))!=null?tt:[],skillsaves:(rt=(nt=A.Skills)==null?void 0:nt.map(({Name:I,Modifier:Fe})=>({[I]:Fe})))!=null?rt:[],senses:(at=(st=(it=A.Senses)==null?void 0:it.join(", "))==null?void 0:st.trim())!=null?at:"",languages:(lt=(ct=(ot=A.Languages)==null?void 0:ot.join(", "))==null?void 0:ct.trim())!=null?lt:"",cr:(mt=(ut=A.Challenge)==null?void 0:ut.trim())!=null?mt:"",traits:(ft=(pt=A.Traits)==null?void 0:pt.map(I=>({name:I.Name,desc:I.Content})))!=null?ft:[],actions:(gt=(ht=A.Actions)==null?void 0:ht.map(I=>({name:I.Name,desc:I.Content})))!=null?gt:[],reactions:(St=(dt=A.Reactions)==null?void 0:dt.map(I=>({name:I.Name,desc:I.Content})))!=null?St:[],legendary_actions:(Rt=(vt=A.LegendaryActions)==null?void 0:vt.map(I=>({name:I.Name,desc:I.Content})))!=null?Rt:[],image:null};i.push(gn)}catch(A){continue}t(i)}catch(Pe){n()}},r.readAsText(e)})}async function cn(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=async i=>{var o,u,l,c,m,d,S,_,y,C,v,O,G,N,b,W,w,k,V,h,F,T,L,Y,X;let s=[];try{let z=JSON.parse(i.target.result),E=[];z.creatures?E=z.creatures:E=[z];for(let g of E)try{let te={image:null,name:g.name,source:"CritterDB",type:g.stats.race,subtype:"",size:g.stats.size,alignment:g.stats.alignment,hp:g.stats.hitPoints,hit_dice:`${Math.floor(g.stats.extraHealthFromConstitution/g.stats.abilityScoreModifiers.constitution)}d${g.stats.hitDieSize} + ${g.stats.extraHealthFromConstitution}`,ac:g.stats.armorClass,speed:g.stats.speed,stats:[g.stats.abilityScores.strength,g.stats.abilityScores.dexterity,g.stats.abilityScores.constitution,g.stats.abilityScores.intelligence,g.stats.abilityScores.wisdom,g.stats.abilityScores.charisma],damage_immunities:(u=(o=g.stats.damageImmunities)==null?void 0:o.join("; ").toLowerCase().trim())!=null?u:"",damage_resistances:(c=(l=g.stats.damageResistances)==null?void 0:l.join(", ").toLowerCase().trim())!=null?c:"",damage_vulnerabilities:(d=(m=g.stats.damageVulnerabilities)==null?void 0:m.join(", ").toLowerCase().trim())!=null?d:"",condition_immunities:(_=(S=g.stats.conditionImmunities)==null?void 0:S.join(", ").toLowerCase().trim())!=null?_:"",saves:(C=(y=g.stats.savingThrows)==null?void 0:y.map(R=>{var q;if(!(!("value"in R)&&!("modifier"in R)))return{[R.ability]:(q=R.value)!=null?q:R.modifier}}).filter(R=>R))!=null?C:[],skillsaves:(O=(v=g.stats.skills)==null?void 0:v.map(R=>{var q;if(!(!("value"in R)&&!("modifier"in R)))return{[R.name]:(q=R.value)!=null?q:R.modifier}}).filter(R=>R))!=null?O:[],senses:(N=(G=g.stats.senses)==null?void 0:G.join(", ").trim())!=null?N:"",languages:(W=(b=g.stats.languages)==null?void 0:b.join(", ").trim())!=null?W:"",cr:(w=g.stats.challengeRating)!=null?w:"",traits:(V=(k=g.stats.additionalAbilities)==null?void 0:k.map(R=>({name:R.name,desc:R.description.replace(/<[^>]*>/g,"")})))!=null?V:[],actions:(F=(h=g.stats.actions)==null?void 0:h.map(R=>({name:R.name,desc:R.description.replace(/<[^>]*>/g,"")})))!=null?F:[],reactions:(L=(T=g.stats.reactions)==null?void 0:T.map(R=>({name:R.name,desc:R.description.replace(/<[^>]*>/g,"")})))!=null?L:[],legendary_actions:(X=(Y=g.stats.legendaryActions)==null?void 0:Y.map(R=>({name:R.name,desc:R.description.replace(/<[^>]*>/g,"")})))!=null?X:[]};s.push(te)}catch(te){continue}t(s)}catch(z){n()}},r.readAsText(e)})}var qn={str:"strength",dex:"dexterity",con:"constitution",wis:"wisdom",int:"intelligence",cha:"charisma"};function H(e){return e.replace(/{@condition (.+?)}/g,"$1").replace(/{@item (.+?)}/g,"$1").replace(/{@spell ([\\s\\S]+?)}/g,"$1").replace(/{@recharge (.+?)}/g,"(Recharge $1-6)").replace(/{@recharge}/g,"(Recharge 6)").replace(/{@h}/g,"").replace(/{@damage (.+?)}/g,"$1").replace(/{@atk ms}/g,"Melee Spell Attack").replace(/{@atk rs}/g,"Ranged Spell Attack").replace(/{@atk mw}/g,"Melee Weapon Attack").replace(/{@atk rw}/g,"Ranged Weapon Attack").replace(/{@atk mw,rw}/g,"Melee / Ranged Weapon Attack").replace(/{@creature (.+?)}/g,"$1").replace(/{@skill (.+?)}/g,"$1").replace(/{@dice (.+?)}/g,"$1").replace(/{@hit (\\d+?)}/g,"+$1").replace(/{@dc (\\d+?)}/g,"$1").replace(/{@quickref (.+?)\\|\\|.+?}/,"$1")}async function ln(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=async i=>{var s,o,u,l,c,m,d,S,_,y,C,v,O,G,N,b,W;try{let w=JSON.parse(i.target.result),k;"monster"in w?k=w.monster:Array.isArray(w)?k=w:typeof w=="object"?k=[w]:n("Invalid monster JSON provided.");let V=[];for(let h of k)try{let F={image:null,name:h.name,source:`${(s=a[h.source])!=null?s:"Unknown"}`,type:h.type,subtype:"",size:B[h.size],alignment:un(h),hp:(u=(o=h.hp)==null?void 0:o.average)!=null?u:"",hit_dice:(c=(l=h.hp)==null?void 0:l.formula)!=null?c:"",ac:Qn(h.ac),speed:nr(h),stats:[h.str,h.dex,h.con,h.int,h.wis,h.cha],damage_immunities:H(Ie(h.immune)),damage_resistances:H(Ie(h.resist)),damage_vulnerabilities:H(Ie(h.vulnerable)),condition_immunities:H(Ie(h.conditionImmune)),saves:Object.entries((m=h.save)!=null?m:{}).map(T=>{let[,L]=T[1].match(/.*?(\\d+)/);return{[qn[T[0]]]:L}}),skillsaves:Object.entries((d=h.skill)!=null?d:{}).map(([T,L])=>{let[,Y]=L.match(/.*?(\\d+)/);return{[T]:Y}}),senses:rr(h),languages:(_=(S=h.languages)==null?void 0:S.join(", ").trim())!=null?_:"",cr:h.cr?h.cr.cr||h.cr:"",traits:(C=(y=h.trait)==null?void 0:y.flatMap(Oe))!=null?C:[],actions:(O=(v=h.action)==null?void 0:v.flatMap(Oe))!=null?O:[],reactions:(N=(G=h.reaction)==null?void 0:G.flatMap(Oe))!=null?N:[],legendary_actions:(W=(b=h.legendary)==null?void 0:b.flatMap(Oe))!=null?W:[],spells:tr(h)};V.push(F)}catch(F){console.error(F);continue}t(V)}catch(w){console.error("reject!!!",w),n(w)}},r.readAsText(e)})}function Ie(e){if(!e)return"";let t=[];for(let n of e)typeof n=="string"&&t.push(n),n.immune&&t.push(`${n.immune.join(", ")}${n.note?" ":""}${n.note?n.note:""}`),n.resist&&t.push(`${n.resist.join(", ")}${n.note?" ":""}${n.note?n.note:""}`);return t.join(", ")}function Qn(e=[]){let[t]=e;return typeof t=="number"?t:t.ac}var Jn={0:"Cantrips (at will)",1:"1st level",2:"2nd level",3:"3rd level",4:"4th level",5:"5th level",6:"6th level",7:"7th level",8:"8th level",9:"9th level"};function er(e){var n,r,i;let t=[H(((n=e.headerEntries)!=null?n:[]).join(`\n`))];if("spells"in e)try{t.push(...Object.entries(e.spells).map(([s,{slots:o,spells:u}])=>{let l=`${Jn[s]}`;l+=o!=null?` (${o} slots)`:"";let c=H(u.join(", "));return{[l]:c}}))}catch(s){throw new Error("There was an error parsing the spells.")}if("will"in e){if(e.will.length>0)try{t.push({"At will":H(e.will.join(", "))})}catch(s){throw new Error("There was an error parsing the at-will spells.")}if(((i=Object.keys((r=e.daily)!=null?r:{}))==null?void 0:i.length)>0)try{t.push(...Object.entries(e.daily).map(([s,o])=>{let u=`Daily (${s})`,l=H(o.join(", "));return{[u]:l}}))}catch(s){throw new Error("There was an error parsing the daily spells.")}}return t}function tr(e){return!e.spellcasting||!e.spellcasting.length?[]:e.spellcasting.flatMap(er)}function un(e){var t;if(!e)return null;if(typeof e=="object")return e.special!=null?e.special:`${((t=e.alignment)!=null?t:[]).map(n=>un(n)).join(" ")}${e.chance?` (${e.chance}%)`:""}${e.note?` (${e.note})`:""}`;switch(e=e.toUpperCase(),e){case"L":return"lawful";case"N":return"neutral";case"NX":return"neutral (law/chaos axis)";case"NY":return"neutral (good/evil axis)";case"C":return"chaotic";case"G":return"good";case"E":return"evil";case"U":return"unaligned";case"A":return"any alignment"}return e}function nr(e){if(e.speed==null)return"\\u2014";function t(s){function o(u){i.push(`${s==="walk"?"":`${s} `}${n(u)} ft. ${r(u)}`.trim())}(e.speed[s]||s==="walk")&&o(e.speed[s]||0),e.speed.alternate&&e.speed.alternate[s]&&e.speed.alternate[s].forEach(o)}function n(s){return s.number!=null?s.number:s}function r(s){var o;return(o=s==null?void 0:s.condition)!=null?o:""}let i=[];if(typeof e.speed=="object"){let s=", ";return t("walk"),t("burrow"),t("climb"),t("fly"),t("swim"),e.speed.choose&&(s="; ",i.push(`${e.speed.choose.from.sort().joinConjunct(", "," or ")} ${e.speed.choose.amount} ft.${e.speed.choose.note?` ${e.speed.choose.note}`:""}`)),i.join(s)+(e.speed.note?` ${e.speed.note}`:"")}else return e.speed+(e.speed==="Varies"?"":" ft. ")}function rr(e){var n,r;let t=[(r=(n=e.senses)==null?void 0:n.join(", ").trim())!=null?r:""];return e.passive&&t.push(`passive Perception ${e.passive}`),t.join(", ")}function Oe(e){return e.entries.reduce((n,r)=>{if(typeof r!="string"){let s=r.items.map(o=>"entry"in o?{name:o.name,entries:[o.entry]}:{name:o.name,entries:o.entries});return n.concat(s)}return n.length>1||n[0].entries.push(r),n},[{name:e.name,entries:[]}]).map(({name:n,entries:r})=>({name:H(n),desc:H(r.join(`\n`))}))}var ir="F",sr="D",ar="T",or="S",cr="M",lr="L",ur="H",mr="G",pr="C",fr="V",B={};B[ir]="Fine";B[sr]="Diminutive";B[ar]="Tiny";B[or]="Small";B[cr]="Medium";B[lr]="Large";B[ur]="Huge";B[mr]="Gargantuan";B[pr]="Colossal";B[fr]="Varies";var hr="CoS",gr="DMG",dr="EEPC",Sr="EET",vr="HotDQ",Rr="LMoP",yr="Mag",Er="MM",_r="OotA",Cr="PHB",Tr="PotA",Ar="RoT",Nr="RoTOS",br="SCAG",wr="SKT",Dr="ToA",$r="ToD",xr="TTP",Mr="TftYP",Ir="TftYP-AtG",Or="TftYP-DiT",Pr="TftYP-TFoF",Ur="TftYP-THSoT",Fr="TftYP-TSC",kr="TftYP-ToH",Lr="TftYP-WPM",Gr="VGM",Wr="XGE",jr="OGA",Br="MTF",Vr="WDH",zr="WDMM",Hr="GGR",Yr="KKW",Xr="LLK",Kr="GoS",Zr="AI",qr="OoW",Qr="ESK",Jr="DIP",ei="HftT",ti="DC",ni="SLW",ri="SDW",ii="BGDIA",si="LR",ai="AL",oi="SAC",ci="ERLW",li="EFR",ui="RMBRE",mi="RMR",pi="MFF",fi="AWM",hi="IMR",gi="SADS",di="EGW",Si="ToR",vi="DD",Ri="FS",yi="US",Ei="MOT",_i="IDRotF",Ci="TCE",Ti="VRGR",Ai="HoL",Ni="Screen",bi="ScreenWildernessKit",wi="HF",Di="CM",qe="AL",$i=`${qe}CurseOfStrahd`,xi=`${qe}ElementalEvil`,Mi=`${qe}RageOfDemons`,pe="PS",Ii=`${pe}A`,Oi=`${pe}I`,Pi=`${pe}K`,Ui=`${pe}Z`,Fi=`${pe}X`,ki=`${pe}D`,p="UA",Li=`${p}Artificer`,Gi=`${p}EladrinAndGith`,Wi=`${p}Eberron`,ji=`${p}FeatsForRaces`,Bi=`${p}FeatsForSkills`,Vi=`${p}FiendishOptions`,zi=`${p}Feats`,Hi=`${p}GothicHeroes`,Yi=`${p}ModernMagic`,Xi=`${p}StarterSpells`,Ki=`${p}TheMysticClass`,Zi=`${p}ThatOldBlackMagic`,qi=`${p}TheRangerRevised`,Qi=`${p}WaterborneAdventures`,Ji=`${p}VariantRules`,es=`${p}LightDarkUnderdark`,ts=`${p}RangerAndRogue`,ns=`${p}ATrioOfSubclasses`,rs=`${p}BarbarianPrimalPaths`,is=`${p}RevisedSubclasses`,ss=`${p}KitsOfOld`,as=`${p}BardBardColleges`,os=`${p}ClericDivineDomains`,cs=`${p}Druid`,ls=`${p}RevisedClassOptions`,us=`${p}Fighter`,ms=`${p}Monk`,ps=`${p}Paladin`,fs=`${p}ModifyingClasses`,hs=`${p}Sorcerer`,gs=`${p}WarlockAndWizard`,ds=`${p}TheFaithful`,Ss=`${p}WizardRevisited`,vs=`${p}ElfSubraces`,Rs=`${p}MassCombat`,ys=`${p}ThreePillarExperience`,Es=`${p}GreyhawkInitiative`,_s=`${p}ThreeSubclasses`,Cs=`${p}OrderDomain`,Ts=`${p}CentaursMinotaurs`,As=`${p}GiantSoulSorcerer`,Ns=`${p}RacesOfEberron`,bs=`${p}RacesOfRavnica`,ws=`${p}WGE`,Ds=`${p}OfShipsAndSea`,$s=`${p}Sidekicks`,xs=`${p}ArtificerRevisited`,Ms=`${p}BarbarianAndMonk`,Is=`${p}SorcererAndWarlock`,Os=`${p}BardAndPaladin`,Ps=`${p}ClericDruidWizard`,Us=`${p}FighterRangerRogue`,Fs=`${p}ClassFeatureVariants`,ks=`${p}FighterRogueWizard`,Ls=`${p}PrestigeClassesRunMagic`,Gs=`${p}Ranger`,Ws=`${p}2020SubclassesPt1`,js=`${p}2020SubclassesPt2`,Bs=`${p}2020SubclassesPt3`,Vs=`${p}2020SubclassesPt4`,zs=`${p}2020SubclassesPt5`,Hs=`${p}2020SpellsAndMagicTattoos`,Ys=`${p}2020PsionicOptionsRevisited`,Xs=`${p}2020SubclassesRevisited`,Ks=`${p}2020Feats`,Zs=`${p}2021GothicLineages`,qs=`${p}2021FolkOfTheFeywild`,Qs=`${p}2021DraconicOptions`,Js=`${p}2021MagesOfStrixhaven`,Qe="Adventurers League: ",fe="Plane Shift: ",f="Unearthed Arcana: ",ee="Tales from the Yawning Portal",a={};a[hr]="Curse of Strahd";a[gr]="Dungeon Master\'s Guide";a[dr]="Elemental Evil Player\'s Companion";a[Sr]="Elemental Evil: Trinkets";a[vr]="Hoard of the Dragon Queen";a[Rr]="Lost Mine of Phandelver";a[yr]="Dragon Magazine";a[Er]="Monster Manual";a[_r]="Out of the Abyss";a[Cr]="Player\'s Handbook";a[Tr]="Princes of the Apocalypse";a[Ar]="The Rise of Tiamat";a[Nr]="The Rise of Tiamat Online Supplement";a[br]="Sword Coast Adventurer\'s Guide";a[wr]="Storm King\'s Thunder";a[Dr]="Tomb of Annihilation";a[$r]="Tyranny of Dragons";a[xr]="The Tortle Package";a[Mr]=ee;a[Ir]=`${ee}: Against the Giants`;a[Or]=`${ee}: Dead in Thay`;a[Pr]=`${ee}: The Forge of Fury`;a[Ur]=`${ee}: The Hidden Shrine of Tamoachan`;a[Fr]=`${ee}: The Sunless Citadel`;a[kr]=`${ee}: Tomb of Horrors`;a[Lr]=`${ee}: White Plume Mountain`;a[Gr]="Volo\'s Guide to Monsters";a[Wr]="Xanathar\'s Guide to Everything";a[jr]="One Grung Above";a[Br]="Mordenkainen\'s Tome of Foes";a[Vr]="Waterdeep: Dragon Heist";a[zr]="Waterdeep: Dungeon of the Mad Mage";a[Hr]="Guildmasters\' Guide to Ravnica";a[Yr]="Krenko\'s Way";a[Xr]="Lost Laboratory of Kwalish";a[Kr]="Ghosts of Saltmarsh";a[Zr]="Acquisitions Incorporated";a[qr]="The Orrery of the Wanderer";a[Qr]="Essentials Kit";a[Jr]="Dragon of Icespire Peak";a[ei]="Hunt for the Thessalhydra";a[ti]="Divine Contention";a[ni]="Storm Lord\'s Wrath";a[ri]="Sleeping Dragon\'s Wake";a[ii]="Baldur\'s Gate: Descent Into Avernus";a[si]="Locathah Rising";a[ai]="Adventurers\' League";a[oi]="Sage Advice Compendium";a[ci]="Eberron: Rising from the Last War";a[li]="Eberron: Forgotten Relics";a[ui]="The Lost Dungeon of Rickedness: Big Rick Energy";a[mi]="Dungeons & Dragons vs. Rick and Morty: Basic Rules";a[pi]="Mordenkainen\'s Fiendish Folio";a[fi]="Adventure with Muk";a[hi]="Infernal Machine Rebuild";a[gi]="Sapphire Anniversary Dice Set";a[di]="Explorer\'s Guide to Wildemount";a[Si]="Tide of Retribution";a[vi]="Dangerous Designs";a[Ri]="Frozen Sick";a[yi]="Unwelcome Spirits";a[Ei]="Mythic Odysseys of Theros";a[_i]="Icewind Dale: Rime of the Frostmaiden";a[Ci]="Tasha\'s Cauldron of Everything";a[Ti]="Van Richten\'s Guide to Ravenloft";a[Ai]="The House of Lament";a[Ni]="Dungeon Master\'s Screen";a[bi]="Dungeon Master\'s Screen: Wilderness Kit";a[wi]="Heroes\' Feast";a[Di]="Candlekeep Mysteries";a[$i]=`${Qe}Curse of Strahd`;a[xi]=`${Qe}Elemental Evil`;a[Mi]=`${Qe}Rage of Demons`;a[Ii]=`${fe}Amonkhet`;a[Oi]=`${fe}Innistrad`;a[Pi]=`${fe}Kaladesh`;a[Ui]=`${fe}Zendikar`;a[Fi]=`${fe}Ixalan`;a[ki]=`${fe}Dominaria`;a[Li]=`${f}Artificer`;a[Gi]=`${f}Eladrin and Gith`;a[Wi]=`${f}Eberron`;a[ji]=`${f}Feats for Races`;a[Bi]=`${f}Feats for Skills`;a[Vi]=`${f}Fiendish Options`;a[zi]=`${f}Feats`;a[Hi]=`${f}Gothic Heroes`;a[Yi]=`${f}Modern Magic`;a[Xi]=`${f}Starter Spells`;a[Ki]=`${f}The Mystic Class`;a[Zi]=`${f}That Old Black Magic`;a[qi]=`${f}The Ranger, Revised`;a[Qi]=`${f}Waterborne Adventures`;a[Ji]=`${f}Variant Rules`;a[es]=`${f}Light, Dark, Underdark!`;a[ts]=`${f}Ranger and Rogue`;a[ns]=`${f}A Trio of Subclasses`;a[rs]=`${f}Barbarian Primal Paths`;a[is]=`${f}Revised Subclasses`;a[ss]=`${f}Kits of Old`;a[as]=`${f}Bard: Bard Colleges`;a[os]=`${f}Cleric: Divine Domains`;a[cs]=`${f}Druid`;a[ls]=`${f}Revised Class Options`;a[us]=`${f}Fighter`;a[ms]=`${f}Monk`;a[ps]=`${f}Paladin`;a[fs]=`${f}Modifying Classes`;a[hs]=`${f}Sorcerer`;a[gs]=`${f}Warlock and Wizard`;a[ds]=`${f}The Faithful`;a[Ss]=`${f}Wizard Revisited`;a[vs]=`${f}Elf Subraces`;a[Rs]=`${f}Mass Combat`;a[ys]=`${f}Three-Pillar Experience`;a[Es]=`${f}Greyhawk Initiative`;a[_s]=`${f}Three Subclasses`;a[Cs]=`${f}Order Domain`;a[Ts]=`${f}Centaurs and Minotaurs`;a[As]=`${f}Giant Soul Sorcerer`;a[Ns]=`${f}Races of Eberron`;a[bs]=`${f}Races of Ravnica`;a[ws]="Wayfinder\'s Guide to Eberron";a[Ds]=`${f}Of Ships and the Sea`;a[$s]=`${f}Sidekicks`;a[xs]=`${f}Artificer Revisited`;a[Ms]=`${f}Barbarian and Monk`;a[Is]=`${f}Sorcerer and Warlock`;a[Os]=`${f}Bard and Paladin`;a[Ps]=`${f}Cleric, Druid, and Wizard`;a[Us]=`${f}Fighter, Ranger, and Rogue`;a[Fs]=`${f}Class Feature Variants`;a[ks]=`${f}Fighter, Rogue, and Wizard`;a[Ls]=`${f}Prestige Classes and Rune Magic`;a[Gs]=`${f}Ranger`;a[Ws]=`${f}2020 Subclasses, Part 1`;a[js]=`${f}2020 Subclasses, Part 2`;a[Bs]=`${f}2020 Subclasses, Part 3`;a[Vs]=`${f}2020 Subclasses, Part 4`;a[zs]=`${f}2020 Subclasses, Part 5`;a[Hs]=`${f}2020 Spells and Magic Tattoos`;a[Ys]=`${f}2020 Psionic Options Revisited`;a[Xs]=`${f}2020 Subclasses Revisited`;a[Ks]=`${f}2020 Feats`;a[Zs]=`${f}2021 Gothic Lineages`;a[qs]=`${f}2021 Folk of the Feywild`;a[Qs]=`${f}2021 Draconic Options`;a[Js]=`${f}2021 Mages of Strixhaven`;var mn={0:{cr:"0",value:0,xp:0},"1/8":{cr:"1/8",value:.125,xp:25},"1/4":{cr:"1/4",value:.25,xp:50},"1/2":{cr:"1/2",value:.5,xp:100},"0.125":{cr:"1/8",value:.125,xp:25},"0.25":{cr:"1/4",value:.25,xp:50},"0.5":{cr:"1/2",value:.5,xp:100},1:{cr:"1",value:1,xp:200},2:{cr:"2",value:2,xp:450},3:{cr:"3",value:3,xp:700},4:{cr:"4",value:4,xp:1100},5:{cr:"5",value:5,xp:1800},6:{cr:"6",value:6,xp:2300},7:{cr:"7",value:7,xp:2900},8:{cr:"8",value:8,xp:3900},9:{cr:"9",value:9,xp:5e3},10:{cr:"10",value:10,xp:5900},11:{cr:"11",value:11,xp:7200},12:{cr:"12",value:12,xp:8400},13:{cr:"13",value:13,xp:1e4},14:{cr:"14",value:14,xp:11500},15:{cr:"15",value:15,xp:13e3},16:{cr:"16",value:16,xp:15e3},17:{cr:"17",value:17,xp:18e3},18:{cr:"18",value:18,xp:2e4},19:{cr:"19",value:19,xp:22e3},20:{cr:"20",value:20,xp:25e3},21:{cr:"21",value:21,xp:33e3},22:{cr:"22",value:22,xp:41e3},23:{cr:"23",value:23,xp:5e4},24:{cr:"24",value:24,xp:62e3},25:{cr:"25",value:25,xp:75e3},26:{cr:"26",value:26,xp:9e4},27:{cr:"27",value:27,xp:105e3},28:{cr:"28",value:28,xp:12e4},29:{cr:"29",value:29,xp:135e3},30:{cr:"30",value:30,xp:155e3}};function Z(e){return Math.floor(((e!=null?e:10)-10)/2)}var pn={tiny:4,small:6,medium:8,large:10,huge:12,gargantuan:20},ea={str:"strength",dex:"dexterity",con:"constitution",int:"intelligence",wis:"wisdom",cha:"charisma"},Te=class{constructor(t){this.monster=t;this.proficiency=this.getProf(this.monster);this.stats={str:this.monster.strPoints,dex:this.monster.dexPoints,con:this.monster.conPoints,int:this.monster.intPoints,wis:this.monster.wisPoints,cha:this.monster.chaPoints};this.modifiers={str:Z(this.stats.str),dex:Z(this.stats.dex),con:Z(this.stats.con),int:Z(this.stats.int),wis:Z(this.stats.wis),cha:Z(this.stats.cha)}}static parse(t){var i,s,o,u,l,c;let n=new Te(t);return{image:null,name:t.name,source:"TetraCube",type:t.type,subtype:"",size:t.size,alignment:t.alignment,hp:(i=n.getHP(t))==null?void 0:i.hp,hit_dice:(s=n.getHP(t))==null?void 0:s.dice,ac:(l=(u=((o=t.ac)!=null?o:[])[0])==null?void 0:u.ac)!=null?l:"",speed:n.getSpeedString(t),stats:[t.strPoints,t.dexPoints,t.conPoints,t.intPoints,t.wisPoints,t.chaPoints],damage_immunities:n.parseImmune(t,"i"),damage_resistances:n.parseImmune(t,"r"),damage_vulnerabilities:n.parseImmune(t,"v"),condition_immunities:n.parseConditions(t),saves:n.getSaves(t),skillsaves:n.getSkills(t),senses:n.getSenses(t),languages:n.getLanguages(t),cr:(c=t.cr)!=null?c:"",traits:n.getTraits(t.abilities),actions:n.getTraits(t.actions),reactions:n.getTraits(t.reactions),legendary_actions:n.getTraits(t.legendaries),spells:n.getSpells(t.abilities)}}getHP(t){var n,r;if(t.customHP||t.hitDice&&/(\\d+) \\((.+)\\)/.test(t.hpText)){let[i,s,o]=(n=t.hpText.match(/(\\d+) \\((.+)\\)/))!=null?n:[];return{hp:s,dice:o}}if(t.hitDice){let i=Number(t.hitDice),s=(r=pn[t.size])!=null?r:pn.medium,o=this.modifiers.con,u=i*s/(2+.5)+o*i,l=o>0?"+":"-",c=o==0?"":` ${l} ${o*i}`;return{hp:u,dice:`${i}d${s}${c}`}}}getSpeedString(t){if(t.customSpeed)return t.speedDesc;let n=[t.speed+" ft."];return t.burrowSpeed>0&&n.push("burrow "+t.burrowSpeed+" ft."),t.climbSpeed>0&&n.push("climb "+t.climbSpeed+" ft."),t.flySpeed>0&&n.push("fly "+t.flySpeed+" ft."+(t.hover?" (hover)":"")),t.swimSpeed>0&&n.push("swim "+t.swimSpeed+" ft."),n.join(", ")}parseImmune(t,n){let r=[];"damagetypes"in t&&Array.isArray(t.damagetypes)&&r.push(...t.damagetypes.filter(s=>s.type==n).map(s=>s.name));let i=[];return"specialdamage"in t&&Array.isArray(t.specialdamage)&&i.push(...t.specialdamage.filter(s=>s.type==n).map(s=>s.name)),[r.join(", "),i.join(", ")].filter(s=>s&&s.length).join("; ")}getLanguages(t){let n=[],r=[],i=[];for(let s=0;s<t.languages.length;s++){let o=t.languages[s];o.speaks||o.speaks==null?r.push(o):i.push(o)}return r.length>0&&n.push([r.slice(0,r.length-2).map(s=>s.name).join(", "),r.slice(-1).map(s=>s.name)].filter(s=>s).join(" and ")),i.length>0&&n.push([i.slice(0,i.length-2).map(s=>s.name).join(", "),i.slice(-1).map(s=>s.name)].filter(s=>s).join(" and ")),t.telepathy>0&&n.push("telepathy "+t.telepathy+" ft."),n.length==0&&n.push("&mdash;"),n.join("; ")}getSenses(t){let n=[];t.blindsight>0&&n.push("blindsight "+t.blindsight+" ft."+(t.blind?" (blind beyond this radius)":"")),t.darkvision>0&&n.push("darkvision "+t.darkvision+" ft."),t.tremorsense>0&&n.push("tremorsense "+t.tremorsense+" ft."),t.truesight>0&&n.push("truesight "+t.truesight+" ft.");let r=t.skills.find(s=>s.name=="perception"),i=10+Z(t.wisPoints);return r!=null&&(i+=this.proficiency*("note"in r?2:1)),n.push("passive Perception "+i),n.join(", ")}transformString(t){return t.replace(/(_|\\*|\\s*>\\s*)/g,"").replace(/\\[MON(S)?\\]/g,`${this.monster.shortName&&this.monster.shortName.length?this.monster.shortName:this.monster.name}$1`).replace(/\\[(\\w+)\\]/g,(n,r)=>{if(r=r.toLowerCase(),!(r in this.modifiers))return n;let i=this.modifiers[r];return`${i>=0?"+":""}${i}`}).replace(/\\[(\\w+) (ATK|SAVE)\\s?(?:([+-])\\s?(\\d+))?\\]/g,(n,r,i="ATK",s="+",o=0)=>{if(r=r.toLowerCase(),!(r in this.modifiers))return n;o=s=="+"?Number(o):-Number(o);let u=(i=="ATK"?0:8)+this.modifiers[r]+this.proficiency+o;return`${u>=0?"+":""}${u}`}).replace(/\\[(\\w+)?\\s?(\\d*[dD]\\d+)\\s?(?:([+-])\\s?(\\d+))?\\]/g,(n,r,i,s="+",o=0)=>{var d;r=r.toLowerCase();let[,u=1,l]=(d=i.match(/(\\d*)[dD](\\d+)/))!=null?d:[];if(u||(u=1),!l)return n;o=s=="+"?Number(o):-Number(o),r in this.modifiers&&(o+=this.modifiers[r]);let c=Math.floor((l/2+.5)*u)+o,m=[`${u}d${l}`];return o&&o!=0&&(m.push(o>=0?"+":"-"),m.push(o)),`${c} (${m.join(" ")})`})}getTraits(t){return!t||!t.length?void 0:t.filter(r=>r.name!="Spellcasting").map(r=>({name:r.name,desc:this.transformString(r.desc)}))}getSpells(t){var i;if(!t.abilities||!t.abilities.length)return;let{desc:n}=(i=t.abilities.find(s=>s.name=="Spellcasting"))!=null?i:{};return n?this.transformString(n).trim().split(`\n`).filter(s=>s.length):void 0}getSaves(t){if(!("sthrows"in t)||!Array.isArray(t.sthrows)||!t.sthrows.length)return[];let n=this.proficiency,r=[];for(let i of t.sthrows){let s=i.name,o=Z(Number(t[`${s}Points`]));isNaN(o)||r.push({[ea[s]]:o+n})}return r}getSkills(t){if(!("skills"in t)||!Array.isArray(t.skills)||!t.skills.length)return[];let n=[],r=this.proficiency;for(let i of t.skills){let s=i.stat,o=Z(Number(t[`${s}Points`]));if(isNaN(o))continue;let u="note"in i;n.push({[i.name]:r+o+o*Number(u)})}return n}getProf(t){var r,i;let n=0;return t.cr=="*"&&(n=t.customProf),"cr"in t&&t.cr in mn&&(n=Math.max(Math.floor(2+(((i=(r=mn[t.cr])==null?void 0:r.value)!=null?i:0)-1)/4),2)),isNaN(Number(n))?0:Number(n)}parseConditions(t){if("conditions"in t&&Array.isArray(t.conditions))return t.conditions.map(n=>n.name).join(", ")}};async function fn(e){return new Promise((t,n)=>{let r=new FileReader,i=[];r.onload=async s=>{try{let o=JSON.parse(s.target.result),u;"monster"in o?u=o.monster:Array.isArray(o)?u=o:typeof o=="object"?u=[o]:n("Invalid monster JSON provided.");let l=[];for(let c of u)try{let m=Te.parse(c);l.push(m)}catch(m){console.error(m);continue}t(l)}catch(o){console.error("reject!!!",o),n(o)}},r.readAsText(e)})}var Je=self;Je.onmessage=async e=>{if(!e.data)return;let{files:t,source:n}=e.data,r=[];for(let i of t)switch(n){case"5e":{let s=await ln(i);r.push(...s!=null?s:[]);break}case"critter":{let s=await cn(i);r.push(...s!=null?s:[]);break}case"improved":{let s=await on(i);r.push(...s!=null?s:[]);break}case"appfile":{let s=await an(i);r.push(...s!=null?s:[]);break}case"tetra":{let s=await fn(i);r.push(...s!=null?s:[]);break}}Je.postMessage({monsters:r})};Je.addEventListener("unhandledrejection",function(e){throw e.reason});\n')}var xt=require("obsidian");var Vi=class extends xt.Modal{constructor(){super(...arguments);this.saved=!1}display(){this.titleEl.createSpan({text:"Set Sources"}),new xt.Setting(this.contentEl).setName("A source could not be found for some imported monsters. Do you wish to manually add one?").addText(a=>{a.setPlaceholder("Unknown").onChange(n=>{this.source=n})}),this.buildButtons(this.contentEl)}buildButtons(a){new xt.Setting(a).addButton(n=>n.setCta().setIcon("checkmark").setTooltip("Save").onClick(()=>{this.saved=!0,this.close()})).addExtraButton(n=>n.setIcon("cross").setTooltip("Cancel").onClick(()=>{this.close()}))}onOpen(){this.display()}},Lu=async t=>new Promise(e=>{let a=new Vi(t);a.onClose=()=>{a.saved||e(null),e(a.source)},a.open()}),Ea=class{constructor(e){this.plugin=e;this.workers=new Map}async import(e,a){return new Promise(n=>{let i=new Ui,s=L();this.workers.set(s,i),i.onmessage=async o=>{let{monsters:r}=o.data??{monsters:[]};if(r){new xt.Notice(`Successfully imported ${r.length} Monsters`);let c=r.filter(l=>l.source=="Unknown"||!l.source),d;c.length&&(d=await Lu(this.plugin.app))&&c.forEach(l=>l.source=d)}i.terminate(),this.workers.delete(s),n(r)},i.onerror=o=>{new xt.Notice(`There was an error importing the file.
${o.message}`),i.terminate(),this.workers.delete(s),n([])},i.postMessage({files:e,source:a})})}};var sc=require("obsidian");var In=require("obsidian");var pe="top",xe="bottom",Ce="right",_e="left",Cn="auto",At=[pe,xe,Ce,_e],pt="start",Ft="end",zr="clippingParents",xn="viewport",oa="popper",Nr="reference",Ki=At.reduce(function(t,e){return t.concat([e+"-"+pt,e+"-"+Ft])},[]),An=[].concat(At,[Cn]).reduce(function(t,e){return t.concat([e,e+"-"+pt,e+"-"+Ft])},[]),ju="beforeRead",$u="read",Gu="afterRead",qu="beforeMain",Uu="main",Vu="afterMain",Ku="beforeWrite",Yu="write",Xu="afterWrite",Fr=[ju,$u,Gu,qu,Uu,Vu,Ku,Yu,Xu];function Me(t){return t?(t.nodeName||"").toLowerCase():null}function ke(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=ke(t).Element;return t instanceof e||t instanceof Element}function Ae(t){var e=ke(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ra(t){if(typeof ShadowRoot>"u")return!1;var e=ke(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Zu(t){var e=t.state;Object.keys(e.elements).forEach(function(a){var n=e.styles[a]||{},i=e.attributes[a]||{},s=e.elements[a];!Ae(s)||!Me(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(o){var r=i[o];r===!1?s.removeAttribute(o):s.setAttribute(o,r===!0?"":r)}))})}function Ju(t){var e=t.state,a={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,a.popper),e.styles=a,e.elements.arrow&&Object.assign(e.elements.arrow.style,a.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:a[n]),r=o.reduce(function(c,d){return c[d]="",c},{});!Ae(i)||!Me(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}var Lr={name:"applyStyles",enabled:!0,phase:"write",fn:Zu,effect:Ju,requires:["computeStyles"]};function Se(t){return t.split("-")[0]}var st=Math.max,Lt=Math.min,ft=Math.round;function Xe(t,e){e===void 0&&(e=!1);var a=t.getBoundingClientRect(),n=1,i=1;if(Ae(t)&&e){var s=t.offsetHeight,o=t.offsetWidth;o>0&&(n=ft(a.width)/o||1),s>0&&(i=ft(a.height)/s||1)}return{width:a.width/n,height:a.height/i,top:a.top/i,right:a.right/n,bottom:a.bottom/i,left:a.left/n,x:a.left/n,y:a.top/i}}function jt(t){var e=Xe(t),a=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-a)<=1&&(a=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:a,height:n}}function Ia(t,e){var a=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(a&&ra(a)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ne(t){return ke(t).getComputedStyle(t)}function Yi(t){return["table","td","th"].indexOf(Me(t))>=0}function Oe(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function bt(t){return Me(t)==="html"?t:t.assignedSlot||t.parentNode||(ra(t)?t.host:null)||Oe(t)}function jr(t){return!Ae(t)||Ne(t).position==="fixed"?null:t.offsetParent}function Qu(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,a=navigator.userAgent.indexOf("Trident")!==-1;if(a&&Ae(t)){var n=Ne(t);if(n.position==="fixed")return null}var i=bt(t);for(ra(i)&&(i=i.host);Ae(i)&&["html","body"].indexOf(Me(i))<0;){var s=Ne(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function ot(t){for(var e=ke(t),a=jr(t);a&&Yi(a)&&Ne(a).position==="static";)a=jr(a);return a&&(Me(a)==="html"||Me(a)==="body"&&Ne(a).position==="static")?e:a||Qu(t)||e}function $t(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Gt(t,e,a){return st(t,Lt(e,a))}function $r(t,e,a){var n=Gt(t,e,a);return n>a?a:n}function Pa(){return{top:0,right:0,bottom:0,left:0}}function Wa(t){return Object.assign({},Pa(),t)}function Ha(t,e){return e.reduce(function(a,n){return a[n]=t,a},{})}var em=function(e,a){return e=typeof e=="function"?e(Object.assign({},a.rects,{placement:a.placement})):e,Wa(typeof e!="number"?e:Ha(e,At))};function tm(t){var e,a=t.state,n=t.name,i=t.options,s=a.elements.arrow,o=a.modifiersData.popperOffsets,r=Se(a.placement),c=$t(r),d=[_e,Ce].indexOf(r)>=0,l=d?"height":"width";if(!(!s||!o)){var m=em(i.padding,a),u=jt(s),h=c==="y"?pe:_e,f=c==="y"?xe:Ce,b=a.rects.reference[l]+a.rects.reference[c]-o[c]-a.rects.popper[l],y=o[c]-a.rects.reference[c],_=ot(s),D=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,I=b/2-y/2,T=m[h],k=D-u[l]-m[f],g=D/2-u[l]/2+I,p=Gt(T,g,k),v=c;a.modifiersData[n]=(e={},e[v]=p,e.centerOffset=p-g,e)}}function am(t){var e=t.state,a=t.options,n=a.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!Ia(e.elements.popper,i)||(e.elements.arrow=i))}var Gr={name:"arrow",enabled:!0,phase:"main",fn:tm,effect:am,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ze(t){return t.split("-")[1]}var nm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function im(t){var e=t.x,a=t.y,n=window,i=n.devicePixelRatio||1;return{x:ft(e*i)/i||0,y:ft(a*i)/i||0}}function qr(t){var e,a=t.popper,n=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,r=t.position,c=t.gpuAcceleration,d=t.adaptive,l=t.roundOffsets,m=t.isFixed,u=o.x,h=u===void 0?0:u,f=o.y,b=f===void 0?0:f,y=typeof l=="function"?l({x:h,y:b}):{x:h,y:b};h=y.x,b=y.y;var _=o.hasOwnProperty("x"),D=o.hasOwnProperty("y"),I=_e,T=pe,k=window;if(d){var g=ot(a),p="clientHeight",v="clientWidth";if(g===ke(a)&&(g=Oe(a),Ne(g).position!=="static"&&r==="absolute"&&(p="scrollHeight",v="scrollWidth")),g=g,i===pe||(i===_e||i===Ce)&&s===Ft){T=xe;var E=m&&g===k&&k.visualViewport?k.visualViewport.height:g[p];b-=E-n.height,b*=c?1:-1}if(i===_e||(i===pe||i===xe)&&s===Ft){I=Ce;var H=m&&g===k&&k.visualViewport?k.visualViewport.width:g[v];h-=H-n.width,h*=c?1:-1}}var w=Object.assign({position:r},d&&nm),W=l===!0?im({x:h,y:b}):{x:h,y:b};if(h=W.x,b=W.y,c){var R;return Object.assign({},w,(R={},R[T]=D?"0":"",R[I]=_?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",R))}return Object.assign({},w,(e={},e[T]=D?b+"px":"",e[I]=_?h+"px":"",e.transform="",e))}function sm(t){var e=t.state,a=t.options,n=a.gpuAcceleration,i=n===void 0?!0:n,s=a.adaptive,o=s===void 0?!0:s,r=a.roundOffsets,c=r===void 0?!0:r;if(!1)var d;var l={placement:Se(e.placement),variation:Ze(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qr(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qr(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Ur={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sm,data:{}};var Dn={passive:!0};function om(t){var e=t.state,a=t.instance,n=t.options,i=n.scroll,s=i===void 0?!0:i,o=n.resize,r=o===void 0?!0:o,c=ke(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&d.forEach(function(l){l.addEventListener("scroll",a.update,Dn)}),r&&c.addEventListener("resize",a.update,Dn),function(){s&&d.forEach(function(l){l.removeEventListener("scroll",a.update,Dn)}),r&&c.removeEventListener("resize",a.update,Dn)}}var Vr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:om,data:{}};var rm={left:"right",right:"left",bottom:"top",top:"bottom"};function ca(t){return t.replace(/left|right|bottom|top/g,function(e){return rm[e]})}var cm={start:"end",end:"start"};function Mn(t){return t.replace(/start|end/g,function(e){return cm[e]})}function qt(t){var e=ke(t),a=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:a,scrollTop:n}}function Ut(t){return Xe(Oe(t)).left+qt(t).scrollLeft}function Xi(t){var e=ke(t),a=Oe(t),n=e.visualViewport,i=a.clientWidth,s=a.clientHeight,o=0,r=0;return n&&(i=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,r=n.offsetTop)),{width:i,height:s,x:o+Ut(t),y:r}}function Zi(t){var e,a=Oe(t),n=qt(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=st(a.scrollWidth,a.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=st(a.scrollHeight,a.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-n.scrollLeft+Ut(t),c=-n.scrollTop;return Ne(i||a).direction==="rtl"&&(r+=st(a.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:r,y:c}}function Vt(t){var e=Ne(t),a=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(a+i+n)}function Sn(t){return["html","body","#document"].indexOf(Me(t))>=0?t.ownerDocument.body:Ae(t)&&Vt(t)?t:Sn(bt(t))}function Dt(t,e){var a;e===void 0&&(e=[]);var n=Sn(t),i=n===((a=t.ownerDocument)==null?void 0:a.body),s=ke(n),o=i?[s].concat(s.visualViewport||[],Vt(n)?n:[]):n,r=e.concat(o);return i?r:r.concat(Dt(bt(o)))}function da(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dm(t){var e=Xe(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function Kr(t,e){return e===xn?da(Xi(t)):ut(e)?dm(e):da(Zi(Oe(t)))}function lm(t){var e=Dt(bt(t)),a=["absolute","fixed"].indexOf(Ne(t).position)>=0,n=a&&Ae(t)?ot(t):t;return ut(n)?e.filter(function(i){return ut(i)&&Ia(i,n)&&Me(i)!=="body"}):[]}function Ji(t,e,a){var n=e==="clippingParents"?lm(t):[].concat(e),i=[].concat(n,[a]),s=i[0],o=i.reduce(function(r,c){var d=Kr(t,c);return r.top=st(d.top,r.top),r.right=Lt(d.right,r.right),r.bottom=Lt(d.bottom,r.bottom),r.left=st(d.left,r.left),r},Kr(t,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Oa(t){var e=t.reference,a=t.element,n=t.placement,i=n?Se(n):null,s=n?Ze(n):null,o=e.x+e.width/2-a.width/2,r=e.y+e.height/2-a.height/2,c;switch(i){case pe:c={x:o,y:e.y-a.height};break;case xe:c={x:o,y:e.y+e.height};break;case Ce:c={x:e.x+e.width,y:r};break;case _e:c={x:e.x-a.width,y:r};break;default:c={x:e.x,y:e.y}}var d=i?$t(i):null;if(d!=null){var l=d==="y"?"height":"width";switch(s){case pt:c[d]=c[d]-(e[l]/2-a[l]/2);break;case Ft:c[d]=c[d]+(e[l]/2-a[l]/2);break;default:}}return c}function rt(t,e){e===void 0&&(e={});var a=e,n=a.placement,i=n===void 0?t.placement:n,s=a.boundary,o=s===void 0?zr:s,r=a.rootBoundary,c=r===void 0?xn:r,d=a.elementContext,l=d===void 0?oa:d,m=a.altBoundary,u=m===void 0?!1:m,h=a.padding,f=h===void 0?0:h,b=Wa(typeof f!="number"?f:Ha(f,At)),y=l===oa?Nr:oa,_=t.rects.popper,D=t.elements[u?y:l],I=Ji(ut(D)?D:D.contextElement||Oe(t.elements.popper),o,c),T=Xe(t.elements.reference),k=Oa({reference:T,element:_,strategy:"absolute",placement:i}),g=da(Object.assign({},_,k)),p=l===oa?g:T,v={top:I.top-p.top+b.top,bottom:p.bottom-I.bottom+b.bottom,left:I.left-p.left+b.left,right:p.right-I.right+b.right},E=t.modifiersData.offset;if(l===oa&&E){var H=E[i];Object.keys(v).forEach(function(w){var W=[Ce,xe].indexOf(w)>=0?1:-1,R=[pe,xe].indexOf(w)>=0?"y":"x";v[w]+=H[R]*W})}return v}function Qi(t,e){e===void 0&&(e={});var a=e,n=a.placement,i=a.boundary,s=a.rootBoundary,o=a.padding,r=a.flipVariations,c=a.allowedAutoPlacements,d=c===void 0?An:c,l=Ze(n),m=l?r?Ki:Ki.filter(function(f){return Ze(f)===l}):At,u=m.filter(function(f){return d.indexOf(f)>=0});u.length===0&&(u=m);var h=u.reduce(function(f,b){return f[b]=rt(t,{placement:b,boundary:i,rootBoundary:s,padding:o})[Se(b)],f},{});return Object.keys(h).sort(function(f,b){return h[f]-h[b]})}function um(t){if(Se(t)===Cn)return[];var e=ca(t);return[Mn(t),e,Mn(e)]}function mm(t){var e=t.state,a=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=a.mainAxis,s=i===void 0?!0:i,o=a.altAxis,r=o===void 0?!0:o,c=a.fallbackPlacements,d=a.padding,l=a.boundary,m=a.rootBoundary,u=a.altBoundary,h=a.flipVariations,f=h===void 0?!0:h,b=a.allowedAutoPlacements,y=e.options.placement,_=Se(y),D=_===y,I=c||(D||!f?[ca(y)]:um(y)),T=[y].concat(I).reduce(function(O,K){return O.concat(Se(K)===Cn?Qi(e,{placement:K,boundary:l,rootBoundary:m,padding:d,flipVariations:f,allowedAutoPlacements:b}):K)},[]),k=e.rects.reference,g=e.rects.popper,p=new Map,v=!0,E=T[0],H=0;H<T.length;H++){var w=T[H],W=Se(w),R=Ze(w)===pt,G=[pe,xe].indexOf(W)>=0,z=G?"width":"height",Z=rt(e,{placement:w,boundary:l,rootBoundary:m,altBoundary:u,padding:d}),N=G?R?Ce:_e:R?xe:pe;k[z]>g[z]&&(N=ca(N));var ue=ca(N),ce=[];if(s&&ce.push(Z[W]<=0),r&&ce.push(Z[N]<=0,Z[ue]<=0),ce.every(function(O){return O})){E=w,v=!1;break}p.set(w,ce)}if(v)for(var ve=f?3:1,Fe=function(K){var ee=T.find(function(Q){var ge=p.get(Q);if(ge)return ge.slice(0,K).every(function(Le){return Le})});if(ee)return E=ee,"break"},ie=ve;ie>0;ie--){var he=Fe(ie);if(he==="break")break}e.placement!==E&&(e.modifiersData[n]._skip=!0,e.placement=E,e.reset=!0)}}var Yr={name:"flip",enabled:!0,phase:"main",fn:mm,requiresIfExists:["offset"],data:{_skip:!1}};function Xr(t,e,a){return a===void 0&&(a={x:0,y:0}),{top:t.top-e.height-a.y,right:t.right-e.width+a.x,bottom:t.bottom-e.height+a.y,left:t.left-e.width-a.x}}function Zr(t){return[pe,Ce,xe,_e].some(function(e){return t[e]>=0})}function hm(t){var e=t.state,a=t.name,n=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=rt(e,{elementContext:"reference"}),r=rt(e,{altBoundary:!0}),c=Xr(o,n),d=Xr(r,i,s),l=Zr(c),m=Zr(d);e.modifiersData[a]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:l,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":m})}var Jr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hm};function gm(t,e,a){var n=Se(t),i=[_e,pe].indexOf(n)>=0?-1:1,s=typeof a=="function"?a(Object.assign({},e,{placement:t})):a,o=s[0],r=s[1];return o=o||0,r=(r||0)*i,[_e,Ce].indexOf(n)>=0?{x:r,y:o}:{x:o,y:r}}function pm(t){var e=t.state,a=t.options,n=t.name,i=a.offset,s=i===void 0?[0,0]:i,o=An.reduce(function(l,m){return l[m]=gm(m,e.rects,s),l},{}),r=o[e.placement],c=r.x,d=r.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=o}var Qr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pm};function fm(t){var e=t.state,a=t.name;e.modifiersData[a]=Oa({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var ec={name:"popperOffsets",enabled:!0,phase:"read",fn:fm,data:{}};function es(t){return t==="x"?"y":"x"}function bm(t){var e=t.state,a=t.options,n=t.name,i=a.mainAxis,s=i===void 0?!0:i,o=a.altAxis,r=o===void 0?!1:o,c=a.boundary,d=a.rootBoundary,l=a.altBoundary,m=a.padding,u=a.tether,h=u===void 0?!0:u,f=a.tetherOffset,b=f===void 0?0:f,y=rt(e,{boundary:c,rootBoundary:d,padding:m,altBoundary:l}),_=Se(e.placement),D=Ze(e.placement),I=!D,T=$t(_),k=es(T),g=e.modifiersData.popperOffsets,p=e.rects.reference,v=e.rects.popper,E=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,H=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),w=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(!!g){if(s){var R,G=T==="y"?pe:_e,z=T==="y"?xe:Ce,Z=T==="y"?"height":"width",N=g[T],ue=N+y[G],ce=N-y[z],ve=h?-v[Z]/2:0,Fe=D===pt?p[Z]:v[Z],ie=D===pt?-v[Z]:-p[Z],he=e.elements.arrow,O=h&&he?jt(he):{width:0,height:0},K=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pa(),ee=K[G],Q=K[z],ge=Gt(0,p[Z],O[Z]),Le=I?p[Z]/2-ve-ge-ee-H.mainAxis:Fe-ge-ee-H.mainAxis,ua=I?-p[Z]/2+ve+ge+Q+H.mainAxis:ie+ge+Q+H.mainAxis,Mt=e.elements.arrow&&ot(e.elements.arrow),Je=Mt?T==="y"?Mt.clientTop||0:Mt.clientLeft||0:0,Ue=(R=w?.[T])!=null?R:0,St=N+Le-Ue-Je,gc=N+ua-Ue,ps=Gt(h?Lt(ue,St):ue,N,h?st(ce,gc):ce);g[T]=ps,W[T]=ps-N}if(r){var fs,pc=T==="x"?pe:_e,fc=T==="x"?xe:Ce,Et=g[k],Ba=k==="y"?"height":"width",bs=Et+y[pc],_s=Et-y[fc],Bn=[pe,_e].indexOf(_)!==-1,ks=(fs=w?.[k])!=null?fs:0,vs=Bn?bs:Et-p[Ba]-v[Ba]-ks+H.altAxis,ys=Bn?Et+p[Ba]+v[Ba]-ks-H.altAxis:_s,ws=h&&Bn?$r(vs,Et,ys):Gt(h?vs:bs,Et,h?ys:_s);g[k]=ws,W[k]=ws-Et}e.modifiersData[n]=W}}var tc={name:"preventOverflow",enabled:!0,phase:"main",fn:bm,requiresIfExists:["offset"]};function ts(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function as(t){return t===ke(t)||!Ae(t)?qt(t):ts(t)}function _m(t){var e=t.getBoundingClientRect(),a=ft(e.width)/t.offsetWidth||1,n=ft(e.height)/t.offsetHeight||1;return a!==1||n!==1}function ns(t,e,a){a===void 0&&(a=!1);var n=Ae(e),i=Ae(e)&&_m(e),s=Oe(e),o=Xe(t,i),r={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!a)&&((Me(e)!=="body"||Vt(s))&&(r=as(e)),Ae(e)?(c=Xe(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=Ut(s))),{x:o.left+r.scrollLeft-c.x,y:o.top+r.scrollTop-c.y,width:o.width,height:o.height}}function km(t){var e=new Map,a=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function i(s){a.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(r){if(!a.has(r)){var c=e.get(r);c&&i(c)}}),n.push(s)}return t.forEach(function(s){a.has(s.name)||i(s)}),n}function is(t){var e=km(t);return Fr.reduce(function(a,n){return a.concat(e.filter(function(i){return i.phase===n}))},[])}function ss(t){var e;return function(){return e||(e=new Promise(function(a){Promise.resolve().then(function(){e=void 0,a(t())})})),e}}function os(t){var e=t.reduce(function(a,n){var i=a[n.name];return a[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,a},{});return Object.keys(e).map(function(a){return e[a]})}var ac={placement:"bottom",modifiers:[],strategy:"absolute"};function nc(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ic(t){t===void 0&&(t={});var e=t,a=e.defaultModifiers,n=a===void 0?[]:a,i=e.defaultOptions,s=i===void 0?ac:i;return function(r,c,d){d===void 0&&(d=s);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ac,s),modifiersData:{},elements:{reference:r,popper:c},attributes:{},styles:{}},m=[],u=!1,h={state:l,setOptions:function(_){var D=typeof _=="function"?_(l.options):_;b(),l.options=Object.assign({},s,l.options,D),l.scrollParents={reference:ut(r)?Dt(r):r.contextElement?Dt(r.contextElement):[],popper:Dt(c)};var I=is(os([].concat(n,l.options.modifiers)));if(l.orderedModifiers=I.filter(function(w){return w.enabled}),!1){var T;if(getBasePlacement(l.options.placement)===auto)var k;var g,p,v,E,H}return f(),h.update()},forceUpdate:function(){if(!u){var _=l.elements,D=_.reference,I=_.popper;if(!!nc(D,I)){l.rects={reference:ns(D,ot(I),l.options.strategy==="fixed"),popper:jt(I)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(w){return l.modifiersData[w.name]=Object.assign({},w.data)});for(var T=0,k=0;k<l.orderedModifiers.length;k++){if(l.reset===!0){l.reset=!1,k=-1;continue}var g=l.orderedModifiers[k],p=g.fn,v=g.options,E=v===void 0?{}:v,H=g.name;typeof p=="function"&&(l=p({state:l,options:E,name:H,instance:h})||l)}}}},update:ss(function(){return new Promise(function(y){h.forceUpdate(),y(l)})}),destroy:function(){b(),u=!0}};if(!nc(r,c))return h;h.setOptions(d).then(function(y){!u&&d.onFirstUpdate&&d.onFirstUpdate(y)});function f(){l.orderedModifiers.forEach(function(y){var _=y.name,D=y.options,I=D===void 0?{}:D,T=y.effect;if(typeof T=="function"){var k=T({state:l,name:_,instance:h,options:I}),g=function(){};m.push(k||g)}})}function b(){m.forEach(function(y){return y()}),m=[]}return h}}var vm=[Vr,ec,Ur,Lr,Qr,Yr,tc,Gr,Jr],rs=ic({defaultModifiers:vm});var cs=class{constructor(e,a,n){this.containerEl=a,this.owner=e,a.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),a.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),n.register([],"ArrowUp",()=>(this.setSelectedItem(this.selectedItem-1,!0),!1)),n.register([],"ArrowDown",()=>(this.setSelectedItem(this.selectedItem+1,!0),!1)),n.register([],"Enter",i=>(this.useSelectedItem(i),!1)),n.register([],"Tab",i=>(this.chooseSuggestion(i),!1))}chooseSuggestion(e){if(!this.items||!this.items.length)return;let a=this.items[this.selectedItem];a&&this.owner.onChooseSuggestion(a,e)}onSuggestionClick(e,a){if(e.preventDefault(),!this.suggestions||!this.suggestions.length)return;let n=this.suggestions.indexOf(a);this.setSelectedItem(n,!1),this.useSelectedItem(e)}onSuggestionMouseover(e,a){if(!this.suggestions||!this.suggestions.length)return;let n=this.suggestions.indexOf(a);this.setSelectedItem(n,!1)}empty(){this.containerEl.empty()}setSuggestions(e){this.containerEl.empty();let a=[];e.forEach(n=>{let i=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(n,i),a.push(i)}),this.items=e,this.suggestions=a,this.setSelectedItem(0,!1)}useSelectedItem(e){if(!this.items||!this.items.length)return;let a=this.items[this.selectedItem];a&&this.owner.selectSuggestion(a,e)}wrap(e,a){return(e%a+a)%a}setSelectedItem(e,a){let n=this.wrap(e,this.suggestions.length),i=this.suggestions[this.selectedItem],s=this.suggestions[n];i&&i.removeClass("is-selected"),s&&s.addClass("is-selected"),this.selectedItem=n,a&&s.scrollIntoView(!1)}},En=class extends In.FuzzySuggestModal{constructor(a,n,i){super(a);this.items=[];this.scope=new In.Scope;this.emptyStateText="No match found";this.limit=100;this.inputEl=n,this.items=i,this.suggestEl=createDiv("suggestion-container"),this.contentEl=this.suggestEl.createDiv("suggestion"),this.suggester=new cs(this,this.contentEl,this.scope),this.scope.register([],"Escape",this.onEscape.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onFocus.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".suggestion-container",s=>{s.preventDefault()})}empty(){this.suggester.empty()}onInputChanged(){if(this.shouldNotOpen)return;let a=this.modifyInput(this.inputEl.value),n=this.getSuggestions(a);n.length>0?this.suggester.setSuggestions(n.slice(0,this.limit)):this.onNoSuggestion(),this.open()}onFocus(){this.shouldNotOpen=!1,this.onInputChanged()}modifyInput(a){return a}onNoSuggestion(){this.empty(),this.renderSuggestion(null,this.contentEl.createDiv("suggestion-item"))}open(){this.app.keymap.pushScope(this.scope),document.body.appendChild(this.suggestEl),this.popper=rs(this.inputEl,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"flip",options:{fallbackPlacements:["top"]}}]})}onEscape(){this.close(),this.shouldNotOpen=!0}close(){this.app.keymap.popScope(this.scope),this.suggester.setSuggestions([]),this.popper&&this.popper.destroy(),this.suggestEl.detach()}createPrompt(a){this.promptEl||(this.promptEl=this.suggestEl.createDiv("prompt-instructions"));let n=this.promptEl.createDiv("prompt-instruction");for(let i of a)n.appendChild(i)}};var Pn=class extends En{constructor(a,n,i){super(a,n.inputEl,i);this.folders=[...i],this.text=n,this.inputEl.addEventListener("input",()=>this.getFolder())}getFolder(){let a=this.inputEl.value,n=this.app.vault.getAbstractFileByPath(a);n!=this.folder&&n instanceof sc.TFolder&&(this.folder=n,this.onInputChanged())}getItemText(a){return a.path}onChooseItem(a){this.text.setValue(a.path),this.folder=a}selectSuggestion({item:a}){let n=a.path;this.text.setValue(n),this.onClose(),this.close()}renderSuggestion(a,n){let{item:i,match:s}=a||{},o=n.createDiv({cls:"suggestion-content"});if(!i){o.setText(this.emptyStateText),o.parentElement.addClass("is-selected");return}let r=i.path.length-i.name.length,c=s.matches.map(d=>createSpan("suggestion-highlight"));for(let d=r;d<i.path.length;d++){let l=s.matches.find(m=>m[0]===d);if(l){let m=c[s.matches.indexOf(l)];o.appendChild(m),m.appendText(i.path.substring(l[0],l[1])),d+=l[1]-l[0]-1;continue}o.appendText(i.path[d])}n.createDiv({cls:"suggestion-note",text:i.path})}getItems(){return this.folders}};var ym=[{type:"inline",id:L(),properties:[],hasRule:!0,nested:[{type:"group",id:L(),properties:["name","description","aspects","temporaryAspects"],nested:[{type:"heading",id:L(),properties:["name"],conditioned:!0},{type:"text",id:L(),properties:["description"],conditioned:!0,markdown:!0,text:null,dice:!1},{type:"text",id:L(),properties:["aspects"],markdown:!0,text:null,dice:!1,conditioned:!0},{type:"text",id:L(),properties:["temporaryAspects"],markdown:!0,text:null,dice:!1,conditioned:!0}],conditioned:!0},{type:"image",id:L(),properties:["image"],conditioned:!0}]},{type:"table",id:L(),properties:["stress"],headers:["Physical","Mental"],calculate:!1,hasRule:!0,conditioned:!0},{type:"traits",id:L(),properties:["consequences"],conditioned:!0,heading:"Consequences"},{type:"traits",id:L(),properties:["skills"],conditioned:!0,hasRule:!1,heading:"Skills"},{type:"traits",id:L(),properties:["stunts"],markdown:!0,dice:!1,conditioned:!0,heading:"Stunts"},{type:"traits",id:L(),properties:["items"],heading:"Items",conditioned:!0,markdown:!0,dice:!1},{type:"traits",id:L(),properties:["extras"],heading:"Extras",conditioned:!0,markdown:!0,dice:!1}],oc={blocks:ym,name:"Basic Fate Core Layout"};var ds=[Ve,oc];var Ra=class extends V.PluginSettingTab{constructor(a,n){super(a,n);this.plugin=n;this.results=[];this.displayed=new Set(this.plugin.sources);this.importer=new Ea(this.plugin)}async display(){try{let{containerEl:a}=this;a.empty(),a.addClass("statblock-settings"),a.createEl("h2",{text:"TTRPG Statblock Settings"}),this.generateTopSettings(a.createDiv()),this.generateParseSettings(a.createDiv()),this.generateLayouts(a.createDiv()),this.generateImports(a.createDiv()),this.generateMonsters(a.createDiv()),a.createDiv("coffee").createEl("a",{href:"https://www.buymeacoffee.com/valentine195"}).createEl("img",{attr:{src:"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=\u2615&slug=valentine195&button_colour=e3e7ef&font_colour=262626&font_family=Inter&outline_colour=262626&coffee_colour=ff0000"}})}catch(a){console.error(a),new V.Notice("There was an error displaying the settings tab for 5e Statblocks.")}}generateTopSettings(a){a.empty(),new V.Setting(a).setHeading().setName("General Settings"),new V.Setting(a).setName("Enable Export to PNG").setDesc(createFragment(n=>{n.createSpan({text:'Add "Export to PNG" button by default. Use '}),n.createEl("code",{text:"export: false"}),n.createSpan({text:" to disable per-statblock."})})).setDisabled(!this.plugin.canUseDiceRoller).addToggle(n=>n.setValue(this.plugin.settings.useDice).onChange(async i=>{this.plugin.settings.useDice=i,await this.plugin.saveSettings()})),new V.Setting(a).setName("Integrate Dice Roller").setDesc(createFragment(n=>{this.plugin.canUseDiceRoller?(n.createSpan({text:"Add Dice Roller dice to statblocks by default. Use "}),n.createEl("code",{text:"dice: false"}),n.createSpan({text:" to disable per-statblock."})):n.createSpan({text:"This setting is only usable with the Dice Roller plugin enabled."})})).setDisabled(!this.plugin.canUseDiceRoller).addToggle(n=>n.setValue(this.plugin.settings.useDice).onChange(async i=>{this.plugin.settings.useDice=i,await this.plugin.saveSettings()})),new V.Setting(a).setName("Render Dice Rolls").setDesc(createFragment(n=>{this.plugin.canUseDiceRoller?(n.createSpan({text:"Roll graphical dice inside statblocks by default. Use "}),n.createEl("code",{text:"render: false"}),n.createSpan({text:" to disable per-statblock."})):n.createSpan({text:"This setting is only usable with the Dice Roller plugin enabled."})})).setDisabled(!this.plugin.canUseDiceRoller).addToggle(n=>n.setValue(this.plugin.settings.renderDice).onChange(async i=>{this.plugin.settings.renderDice=i,await this.plugin.saveSettings()}))}generateParseSettings(a){a.empty(),new V.Setting(a).setHeading().setName("Note Parsing"),new V.Setting(a).setName("Parse Frontmatter for Creatures").setDesc(createFragment(n=>{n.createSpan({text:"The plugin will watch the vault for creatures defined in note frontmatter."}),n.createEl("br"),n.createEl("br"),n.createSpan({text:'The "Parse Frontmatter for Creatures" command can also be used.'})})).addToggle(n=>{n.setValue(this.plugin.settings.autoParse).onChange(async i=>{this.plugin.settings.autoParse=i,i&&this.plugin.watcher.start(),await this.plugin.saveSettings()})}),new V.Setting(a).setName("Bestiary Folder").setDesc("The plugin will only parse notes inside this folder and its children.").addText(async n=>{let i=this.app.vault.getAllLoadedFiles().filter(o=>o instanceof V.TFolder);n.setPlaceholder(this.plugin.settings.path??"/");let s=new Pn(this.app,n,[...i]);s.onClose=async()=>{let o=n.inputEl.value?.trim()?n.inputEl.value.trim():"/";this.plugin.settings.path=(0,V.normalizePath)(o),await this.plugin.saveSettings()},n.inputEl.onblur=async()=>{let o=n.inputEl.value?.trim()?n.inputEl.value.trim():"/";this.plugin.settings.path=(0,V.normalizePath)(o),await this.plugin.saveSettings()}})}generateLayouts(a){a.empty(),new V.Setting(a).setHeading().setName("Layouts");let n=a.createDiv("statblock-additional-container");n.createDiv("setting-item").createDiv().appendChild(createFragment(c=>{c.createSpan({text:"New statblock layouts can be created and managed here. A specific statblock can be used for a creature using the "}),c.createEl("code",{text:"statblock"}),c.createSpan({text:" parameter."})}));let i=new V.Setting(n).setName("Import From JSON").setDesc("Import a custom layout from a JSON file."),s=createEl("input",{attr:{type:"file",name:"layout",accept:".json",multiple:!0}});s.onchange=async()=>{let{files:c}=s;if(!!c.length)try{let{files:d}=s;if(!d.length)return;for(let l of Array.from(d))await new Promise((m,u)=>{let h=new FileReader;h.onload=f=>{try{let b=JSON.parse(f.target.result);if(!b){u(new Error("Invalid layout imported"));return}if(!b?.name){u(new Error("Invalid layout imported: layout does not have a name"));return}if(!b?.blocks){u(new Error("Invalid layout imported: no blocks defined in layout."));return}this.plugin.settings.layouts.push(this.getDuplicate(b)),m()}catch(b){u(b)}},h.readAsText(l)}).catch(m=>{new V.Notice(`There was an error importing the layout:
${m}`),console.error(m)});await this.plugin.saveSettings(),this.buildCustomLayouts(r)}catch{}},i.addButton(c=>{c.setIcon("upload"),c.buttonEl.addClass("statblock-file-upload"),c.buttonEl.appendChild(s),c.onClick(()=>s.click())}),new V.Setting(n).setName("Add New Layout").addButton(c=>c.setIcon("plus-with-circle").setTooltip("Add New Statblock").onClick(()=>{let d=new Wn(this.plugin);d.onClose=async()=>{!d.saved||(this.plugin.settings.layouts.push(this.getDuplicate(d.layout)),await this.plugin.saveSettings(),this.buildCustomLayouts(r))},d.open()}));let o=n.createDiv("additional");new V.Setting(o).setName("Default Layout").setDesc("Change the default statblock layout used, if not specified.").addDropdown(async c=>{for(let d of ds)c.addOption(d.name,d.name);for(let d of this.plugin.settings.layouts)c.addOption(d.name,d.name);(!this.plugin.settings.default||!this.plugin.settings.layouts.find(({name:d})=>d==this.plugin.settings.default))&&(this.plugin.settings.default=Ve.name,await this.plugin.saveSettings()),c.setValue(this.plugin.settings.default??Ve.name),c.onChange(async d=>{this.plugin.settings.default=d,await this.plugin.saveSettings()})}),new V.Setting(o).setName("Show Advanced Options").setDesc("Show advanced options when editing layout blocks.").addToggle(c=>c.setValue(this.plugin.settings.showAdvanced).onChange(async d=>{this.plugin.settings.showAdvanced=d,await this.plugin.saveSettings()}));let r=n.createDiv("additional");this.buildCustomLayouts(r)}getDuplicate(a){if(!this.plugin.settings.layouts.find(r=>r.name==a.name)&&a.name!=Ve.name)return a;let n=[Ve.name,...this.plugin.settings.layouts.filter(r=>r.name.contains(`${a.name} Copy`)).map(r=>r.name)],i=`${a.name} Copy`,s=i,o=1;for(;n.includes(s);)s=`${i} (${o})`,o++;return{blocks:(0,us.default)(a.blocks),name:s}}buildCustomLayouts(a){a.empty();for(let n of ds)new V.Setting(a).setName(n.name).addExtraButton(i=>{i.setIcon("duplicate-glyph").setTooltip("Create Copy").onClick(async()=>{this.plugin.settings.layouts.push(this.getDuplicate(n)),await this.plugin.saveSettings(),this.buildCustomLayouts(a)})});for(let n of this.plugin.settings.layouts)new V.Setting(a).setName(n.name).addExtraButton(i=>{i.setIcon("pencil").setTooltip("Edit").onClick(()=>{let s=new Wn(this.plugin,n);s.onClose=async()=>{!s.saved||(this.plugin.settings.layouts.splice(this.plugin.settings.layouts.indexOf(n),1,s.layout),await this.plugin.saveSettings(),this.buildCustomLayouts(a))},s.open()})}).addExtraButton(i=>{i.setIcon("duplicate-glyph").setTooltip("Create Copy").onClick(async()=>{this.plugin.settings.layouts.push(this.getDuplicate(n)),await this.plugin.saveSettings(),this.buildCustomLayouts(a)})}).addExtraButton(i=>{i.setIcon("import-glyph").setTooltip("Export as JSON").onClick(()=>{let s=createEl("a"),o=new Blob([JSON.stringify(n)],{type:"json"}),r=URL.createObjectURL(o);s.href=r,s.download=`${n.name}.json`,s.click(),URL.revokeObjectURL(r)})}).addExtraButton(i=>{i.setIcon("trash").setTooltip("Delete").onClick(async()=>{this.plugin.settings.layouts=this.plugin.settings.layouts.filter(s=>s.name!==n.name),await this.plugin.saveSettings(),this.buildCustomLayouts(a)})})}generateImports(a){a.empty(),new V.Setting(a).setHeading().setName("Import Homebrew Creatures");let n=a.createDiv("statblock-additional-container");new V.Setting(n).setDesc("Import creatures from creature files. Monsters are stored by name, so only the last creature by that name will be saved. This is destructive - any saved creature will be overwritten.");let i=n.createDiv("additional"),s=new V.Setting(i).setName("Import DnDAppFile").setDesc("Only import content that you own."),o=createEl("input",{attr:{type:"file",name:"dndappfile",accept:".xml",multiple:!0}});o.onchange=async()=>{let{files:b}=o;if(!!b.length)try{let{files:y}=o;if(!y.length)return;let _=await this.importer.import(y,"appfile");_&&_.length&&await this.plugin.saveMonsters(_),this.display()}catch{}},s.addButton(b=>{b.setButtonText("Choose File(s)").setTooltip("Import DnDAppFile Data"),b.buttonEl.addClass("statblock-file-upload"),b.buttonEl.appendChild(o),b.onClick(()=>o.click())});let r=new V.Setting(i).setName("Import Improved Initiative Data").setDesc("Only import content that you own."),c=createEl("input",{attr:{type:"file",name:"improvedinitiative",accept:".json",multiple:!0}});c.onchange=async()=>{let{files:b}=c;if(!!b.length)try{let{files:y}=c;if(!y.length)return;let _=await this.importer.import(y,"improved");_&&_.length&&await this.plugin.saveMonsters(_),this.display()}catch{}},r.addButton(b=>{b.setButtonText("Choose File(s)").setTooltip("Import Improved Initiative Data"),b.buttonEl.addClass("statblock-file-upload"),b.buttonEl.appendChild(c),b.onClick(()=>c.click())});let d=new V.Setting(i).setName("Import CritterDB Data").setDesc("Only import content that you own."),l=createEl("input",{attr:{type:"file",name:"critterdb",accept:".json",multiple:!0}});l.onchange=async()=>{let{files:b}=l;if(!!b.length)try{let{files:y}=l;if(!y.length)return;let _=await this.importer.import(y,"critter");_&&_.length&&await this.plugin.saveMonsters(_),this.display()}catch{}},d.addButton(b=>{b.setButtonText("Choose File(s)").setTooltip("Import CritterDB Data"),b.buttonEl.addClass("statblock-file-upload"),b.buttonEl.appendChild(l),b.onClick(()=>l.click())});let m=new V.Setting(i).setName("Import 5e.tools Data").setDesc("Only import content that you own."),u=createEl("input",{attr:{type:"file",name:"fivetools",accept:".json",multiple:!0}});u.onchange=async()=>{let{files:b}=u;if(!b.length)return;let y=await this.importer.import(b,"5e");y&&y.length&&await this.plugin.saveMonsters(y),this.display()},m.addButton(b=>{b.setButtonText("Choose File(s)").setTooltip("Import 5e.tools Data"),b.buttonEl.addClass("statblock-file-upload"),b.buttonEl.appendChild(u),b.onClick(()=>u.click())});let h=new V.Setting(i).setName("Import TetraCube Data").setDesc("Only import content that you own."),f=createEl("input",{attr:{type:"file",name:"tetra",accept:".json, .monster",multiple:!0}});f.onchange=async()=>{let{files:b}=f;if(!b.length)return;let y=await this.importer.import(b,"tetra");y&&y.length&&await this.plugin.saveMonsters(y),this.display()},h.addButton(b=>{b.setButtonText("Choose File(s)").setTooltip("Import TetraCube Data"),b.buttonEl.addClass("statblock-file-upload"),b.buttonEl.appendChild(f),b.onClick(()=>f.click())})}generateMonsters(a){a.empty(),new V.Setting(a).setHeading().setName("Homebrew Creatures");let n=a.createDiv("statblock-additional-container statblock-monsters");new V.Setting(n).setName("Add Creature").addButton(m=>{m.setIcon("plus-with-circle").onClick(()=>{let u=new sa(this.plugin);u.onClose=()=>{this.generateMonsters(a)},u.open()})});let i=this.containerEl.closest(".statblock-settings"),{backgroundColor:s,paddingTop:o}=getComputedStyle(i),r=n.createDiv({cls:"statblock-monster-filter",attr:{style:`--statblock-filter-offset: ${o}; --statblock-filter-bg: ${s}`}});this.filter=new V.Setting(r).setClass("statblock-filter-container").addSearch(m=>{m.setPlaceholder("Search Monsters").onChange((0,V.debounce)(u=>{this.showSearchResults(l,u)},100))}).addExtraButton(m=>{m.setIcon("trash").setTooltip("Delete All Filtered Monsters").onClick(()=>{let u=new ls(this.results.length,this.plugin.app);u.onClose=async()=>{u.saved&&(await this.plugin.deleteMonsters(...this.results?.map(h=>h.name)??[]),this.generateMonsters(a))},u.open()})}),this.setFilterDesc();let c=r.createEl("details");c.createEl("summary",{text:"Filter Sources"});let d=c.createEl("ul","contains-task-list task-list-inline markdown-preview-view");for(let m of this.plugin.sources){let u=d.createEl("li","task-list-item");u.createEl("input",{attr:{id:"input_"+m,checked:!0},type:"checkbox",cls:"task-list-item-checkbox"}).onclick=h=>{h.target.checked?this.displayed.add(m):this.displayed.delete(m),this.showSearchResults(l,"")},u.createEl("label",{attr:{for:"input_"+m},text:m})}let l=n.createDiv("additional");if(!this.plugin.data.size){l.createDiv({attr:{style:"display: flex; justify-content: center; padding-bottom: 18px;"}}).createSpan({text:"No saved creatures! Create one to see it here."});return}setTimeout(()=>this.showSearchResults(l,""))}setFilterDesc(){this.filter.setDesc(createFragment(a=>{a.createSpan({text:`Managing ${this.plugin.settings.monsters.length} homebrew creature${this.plugin.settings.monsters.length==1?"":"s"}.`}),a.createEl("p",{attr:{style:"margin: 0;"}}).createEl("small",{text:`Displaying: ${this.results.length} homebrew creatures.`})}))}showSearchResults(a,n){a.empty();for(let i of this.performFuzzySearch(n))new V.Setting(a).setName(i.name).setDesc(i.source).addExtraButton(o=>{o.setIcon("info").setTooltip("View").onClick(()=>{new Tn(this.plugin,i).open()})}).addExtraButton(o=>{o.setIcon("pencil").setTooltip("Edit").onClick(()=>{let r=new sa(this.plugin,i);r.open(),r.onClose=()=>{this.showSearchResults(a,n)}})}).addExtraButton(o=>{o.setIcon("trash").setTooltip("Delete").onClick(async()=>{await this.plugin.deleteMonster(i.name),this.showSearchResults(a,n)})});this.setFilterDesc()}performFuzzySearch(a){let n=[];for(let i of this.plugin.sorted){if(!this.displayed.has(i.source))continue;((0,V.prepareSimpleSearch)(a)(i.name)??(0,V.prepareSimpleSearch)(a)(i.source))&&n.push(i)}return this.results=n.slice(0,100),this.results}},Wn=class extends V.Modal{constructor(a,n={name:"Layout",blocks:[]}){super(a.app);this.plugin=a;this.saved=!1;this.layout=(0,us.default)(n)}onOpen(){this.display()}display(){this.titleEl.createSpan({text:"Create Layout"}),this.creator=new Or({target:this.contentEl,props:{layout:this.layout,plugin:this.plugin}}),this.creator.$on("saved",()=>{this.saved=!0,this.close()}),this.creator.$on("cancel",()=>{this.close()})}},ls=class extends V.Modal{constructor(a,n){super(n);this.filtered=a;this.saved=!1}onOpen(){this.titleEl.setText("Are you sure?"),this.contentEl.createEl("p",{text:`This will delete ${this.filtered} creatures. This cannot be undone.`}),new V.Setting(this.contentEl).setClass("no-border-top").addButton(a=>{a.setIcon("checkmark").setCta().onClick(()=>{this.saved=!0,this.close()})}).addExtraButton(a=>a.setIcon("cross").onClick(()=>{this.saved=!0,this.close()}))}};var On=ma(_a());var rc=function(t){return function(e,a,n){return t(e,a,n)*n}},hs=function(t,e){if(t)throw Error("Invalid sort config: "+e)},cc=function(t){var e=t||{},a=e.asc,n=e.desc,i=a?1:-1,s=a||n;hs(!s,"Expected `asc` or `desc` property"),hs(a&&n,"Ambiguous object with `asc` and `desc` config properties");var o=t.comparer&&rc(t.comparer);return{order:i,sortBy:s,comparer:o}},wm=function(t){return function e(a,n,i,s,o,r,c){var d,l;if(typeof a=="string")d=r[a],l=c[a];else if(typeof a=="function")d=a(r),l=a(c);else{var m=cc(a);return e(m.sortBy,n,i,m.order,m.comparer||t,r,c)}var u=o(d,l,s);return(u===0||d==null&&l==null)&&n.length>i?e(n[i],n,i+1,s,o,r,c):u}};function dc(t,e,a){if(t===void 0||t===!0)return function(s,o){return e(s,o,a)};if(typeof t=="string")return hs(t.includes("."),"String syntax not allowed for nested properties."),function(s,o){return e(s[t],o[t],a)};if(typeof t=="function")return function(s,o){return e(t(s),t(o),a)};if(Array.isArray(t)){var n=wm(e);return function(s,o){return n(t[0],t,1,a,e,s,o)}}var i=cc(t);return dc(i.sortBy,i.comparer||e,i.order)}var ms=function(t,e,a,n){var i;return Array.isArray(e)?(Array.isArray(a)&&a.length<2&&(i=a,a=i[0]),e.sort(dc(a,n,t))):e};function lc(t){var e=rc(t.comparer);return function(a){var n=Array.isArray(a)&&!t.inPlaceSorting?a.slice():a;return{asc:function(i){return ms(1,n,i,e)},desc:function(i){return ms(-1,n,i,e)},by:function(i){return ms(1,n,i,e)}}}}var uc=function(t,e,a){return t==null?a:e==null?-a:t<e?-1:t>e?1:0},la=lc({comparer:uc}),P_=lc({comparer:uc,inPlaceSorting:!0});var ct=require("obsidian");function gs(){return Sa('var Q=Object.create;var k=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var J=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var T=(n,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of H(t))!Y.call(n,d)&&d!==s&&k(n,d,{get:()=>t[d],enumerable:!(i=z(t,d))||i.enumerable});return n};var X=(n,t,s)=>(s=n!=null?Q(V(n)):{},T(t||!n||!n.__esModule?k(s,"default",{value:n,enumerable:!0}):s,n));var B=J((C,x)=>{(function(n,t){typeof C=="object"&&typeof x!="undefined"?x.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis!="undefined"?globalThis:n||self,n["fast-copy"]=t())})(C,function(){"use strict";var n=Function.prototype.toString,t=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,P=Object.prototype,W=P.hasOwnProperty,L=P.propertyIsEnumerable,S=typeof w=="function",$=typeof WeakMap=="function",q=function(){if($)return function(){return new WeakMap};var o=function(){function a(){this._keys=[],this._values=[]}return a.prototype.has=function(u){return!!~this._keys.indexOf(u)},a.prototype.get=function(u){return this._values[this._keys.indexOf(u)]},a.prototype.set=function(u,r){this._keys.push(u),this._values.push(r)},a}();return function(){return new o}}(),A=function(o,a){var u=o.__proto__||v(o);if(!u)return t(null);var r=u.constructor;if(r===a.Object)return u===a.Object.prototype?{}:t(u);if(~n.call(r).indexOf("[native code]"))try{return new r}catch(p){}return t(u)},I=function(o,a,u,r){var p=A(o,a);r.set(o,p);for(var y in o)W.call(o,y)&&(p[y]=u(o[y],r));if(S)for(var e=w(o),g=0,l=e.length,c=void 0;g<l;++g)c=e[g],L.call(o,c)&&(p[c]=u(o[c],r));return p},j=function(o,a,u,r){var p=A(o,a);r.set(o,p);for(var y=S?d(o).concat(w(o)):d(o),e=0,g=y.length,l=void 0,c=void 0;e<g;++e)if(l=y[e],l!=="callee"&&l!=="caller")if(c=i(o,l),c){!c.get&&!c.set&&(c.value=u(o[l],r));try{s(p,l,c)}catch(f){p[l]=c.value}}else p[l]=u(o[l],r);return p},R=function(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),o.unicode&&(a+="u"),o.sticky&&(a+="y"),a},U=Array.isArray,D=Object.getPrototypeOf,G=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:(console&&console.error&&console.error(\'Unable to locate global object, returning "this".\'),this)}();function M(o,a){var u=!!(a&&a.isStrict),r=a&&a.realm||G,p=u?j:I,y=function(e,g){if(!e||typeof e!="object")return e;if(g.has(e))return g.get(e);var l=e.__proto__||D(e),c=l&&l.constructor;if(!c||c===r.Object)return p(e,r,y,g);var f;if(U(e)){if(u)return j(e,r,y,g);f=new c,g.set(e,f);for(var O=0,K=e.length;O<K;++O)f[O]=y(e[O],g);return f}if(e instanceof r.Date)return new c(e.getTime());if(e instanceof r.RegExp)return f=new c(e.source,e.flags||R(e)),f.lastIndex=e.lastIndex,f;if(r.Map&&e instanceof r.Map)return f=new c,g.set(e,f),e.forEach(function(_,N){f.set(N,y(_,g))}),f;if(r.Set&&e instanceof r.Set)return f=new c,g.set(e,f),e.forEach(function(_){f.add(y(_,g))}),f;if(r.Blob&&e instanceof r.Blob)return e.slice(0,e.size,e.type);if(r.Buffer&&r.Buffer.isBuffer(e))return f=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(e.length):new c(e.length),g.set(e,f),e.copy(f),f;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(e))return f=new c(e.buffer.slice(0)),g.set(e,f),f;if(e instanceof r.ArrayBuffer)return f=e.slice(0),g.set(e,f),f}return typeof e.then=="function"||e instanceof Error||r.WeakMap&&e instanceof r.WeakMap||r.WeakSet&&e instanceof r.WeakSet?e:p(e,r,y,g)};return y(o,q())}return M.default=M,M.strict=function(a,u){return M(a,{isStrict:!0,realm:u?u.realm:void 0})},M})});var E=X(B());var b=(n,t=0)=>{let s=[];if(t==5||!n||n==null)return"";if(typeof n=="string")return n;if(typeof n=="number")return`${n}`;if(Array.isArray(n))s.push(`${n.map(i=>b(i,t++)).join(" ")}`);else if(typeof n=="object")for(let[i,d]of Object.entries(n))s.push(b(i,t++),b(d,t++));return s.join(" ")};function h(n=[],t=[]){n||(n=[]),t||(t=[]);for(let s of t!=null?t:[])!s||(Array.isArray(s)?(n=n.filter(i=>i.name!=s[0]),n.push({name:s[0],desc:b(s.slice(1))})):typeof s=="object"&&"name"in s&&"desc"in s&&(n=n.filter(i=>i.name!=s.name),n.push({name:s.name,desc:b(s.desc)})));return n}var m=self,F=class{constructor(){this.queue=[];this.parsing=!1;m.addEventListener("message",t=>{t.data.type=="queue"&&this.add(...t.data.paths)})}add(...t){this.queue.push(...t),this.parsing||this.parse()}async parse(){for(this.parsing=!0;this.queue.length;){let t=this.queue.shift(),{file:s,cache:i}=await this.getFileData(t);this.parseFileForCreatures(s,i),m.postMessage({type:"done",path:t})}this.parsing=!1,m.postMessage({type:"save"})}async getFileData(t){return new Promise(s=>{m.addEventListener("message",i=>{i.data.type=="file"&&s(i.data)}),m.postMessage({path:t,type:"get"})})}parseFileForCreatures(t,s){if(!s||!s.frontmatter||!s.frontmatter.statblock||!s.frontmatter.name)return;let i=Object.assign({},(0,E.default)(s.frontmatter),{note:t.path,mtime:t.mtime});i.traits&&(i.traits=h([],i.traits)),i.actions&&(i.actions=h([],i.actions)),i.bonus_actions&&(i.bonus_actions=h([],i.bonus_actions)),i.reactions&&(i.reactions=h([],i.reactions)),i.legendary_actions&&(i.legendary_actions=h([],i.legendary_actions)),m.postMessage({type:"update",monster:i,path:t.path})}};new F;\n')}var Hn=class extends ct.Component{constructor(a){super();this.plugin=a;this.watchPaths=new Map;this.worker=new gs}get metadataCache(){return this.plugin.app.metadataCache}get vault(){return this.plugin.app.vault}onload(){this.registerEvent(this.metadataCache.on("changed",async a=>{if(!this.plugin.settings.autoParse)return;let{frontmatter:n}=this.metadataCache.getFileCache(a)??{};if(!n||!n.statblock){this.watchPaths.has(a.path)&&this.delete(a.path);return}this.parsePath(a)})),this.registerEvent(this.vault.on("rename",async(a,n)=>{!this.plugin.settings.autoParse||a instanceof ct.TFile&&(!this.watchPaths.has(n)||(await this.delete(n),this.parsePath(a)))})),this.registerEvent(this.vault.on("delete",a=>{!this.plugin.settings.autoParse||a instanceof ct.TFile&&(!this.watchPaths.has(a.path)||this.delete(a.path))})),this.worker.addEventListener("message",a=>{if(a.data.type=="get"){let{path:n}=a.data,i=this.getFileInformation(n);this.worker.postMessage({type:"file",path:n,...i})}}),this.worker.addEventListener("message",async a=>{if(a.data.type=="update"){let{monster:n,path:i}=a.data;if(this.watchPaths.has(i)){let s=this.watchPaths.get(i);this.plugin.deleteMonster(s)}this.watchPaths.set(i,n.name),this.plugin.saveMonster(n,!1,!1)}}),this.worker.addEventListener("message",async a=>{a.data.type=="save"&&(await this.plugin.saveSettings(),this.startTime&&(console.info(`TTRPG Statblocks: Frontmatter Parsing Complete in ${((Date.now()-this.startTime)/1e3).toLocaleString()} seconds.`),this.startTime=0),this.announce&&(new ct.Notice("TTRPG Statblocks: Frontmatter Parsing complete."),this.announce=!1))}),this.plugin.app.workspace.onLayoutReady(()=>{for(let[a,n]of this.plugin.settings.monsters.filter(([i,s])=>s.note))this.watchPaths.has(n.note)&&this.plugin.deleteMonster(n.name),this.watchPaths.set(n.note,n.name);!this.plugin.settings.autoParse||this.start()})}async delete(a){await this.plugin.deleteMonster(this.watchPaths.get(a)),this.watchPaths.delete(a)}start(a=!1){this.announce=a,this.startTime=Date.now(),console.info("TTRPG Statblocks: Starting Frontmatter Parsing.");let n=this.vault.getAbstractFileByPath(this.plugin.settings.path);this.parsePath(n)}pathContainsFile(a){return!this.plugin.settings.path||this.plugin.settings.path=="/"?!0:a.path.includes(this.plugin.settings.path,1)}parsePath(a){if(!this.pathContainsFile(a))return;let n=new Set;for(let i of this.getFiles(a))n.add(i);this.startParsing([...n])}startParsing(a){a.length&&this.worker.postMessage({type:"queue",paths:a})}getFileInformation(a){let n=this.plugin.app.vault.getAbstractFileByPath(a);if(!(n instanceof ct.TFile))return;if(this.watchPaths.has(n.path)){let s=this.plugin.bestiary.get(this.watchPaths.get(n.path));if(s&&s.mtime&&s.mtime==n.stat.mtime)return}return{cache:this.metadataCache.getFileCache(n),file:{path:n.path,basename:n.basename,mtime:n.stat.mtime}}}getFiles(a){let n=[];if(a instanceof ct.TFolder)for(let i of a.children)n.push(...this.getFiles(i));return a instanceof ct.TFile&&n.push(a.path),n}async reparseVault(){for(let n of this.watchPaths.values())this.plugin.deleteMonster(n,!1,!1);let a=this.vault.getAbstractFileByPath(this.plugin.settings.path);this.parsePath(a)}onunload(){this.worker.terminate(),this.worker=null}};var mc={monsters:[],layouts:[],default:Ve.name,useDice:!0,renderDice:!1,export:!0,showAdvanced:!1,version:{major:null,minor:null,patch:null},path:"/",autoParse:!1},Rn=class extends Be.Plugin{constructor(){super(...arguments);this.watcher=new Hn(this);this._sorted=[]}getRoller(a){return this.canUseDiceRoller?this.app.plugins.getPlugin("obsidian-dice-roller").getRollerSync(a,"statblock",!0):void 0}get canUseDiceRoller(){if(this.app.plugins.getPlugin("obsidian-dice-roller")!=null)if(!this.app.plugins.getPlugin("obsidian-dice-roller").getRollerSync)new Be.Notice("Please update Dice Roller to the latest version to use with Initiative Tracker.");else return!0;return!1}get sorted(){return this._sorted.length||(this._sorted=la(Array.from(this.data.values())).asc(a=>a.name)),this._sorted}get sources(){return new Set(Array.from(this.data.values()).map(a=>a.source))}async onload(){console.log("TTRPG StatBlocks loaded"),await this.loadSettings(),await this.loadMonsterData(),await this.saveSettings(),this.watcher.load(),this.addCommand({id:"parse-frontmatter",name:"Parse Frontmatter for Creatures",callback:()=>{this.watcher.start(!0)}}),(0,Be.addIcon)("dropzone-grip",'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="grip-lines-vertical" class="svg-inline--fa fa-grip-lines-vertical fa-w-8" role="img" viewBox="0 0 256 512"><path fill="currentColor" d="M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z"/></svg>'),(0,Be.addIcon)("statblock-conditioned",'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="far" data-icon="question-circle" class="svg-inline--fa fa-question-circle fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"/></svg>'),(0,Be.addIcon)("dice-roller-dice",'<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="dice" class="svg-inline--fa fa-dice fa-w-20" role="img" viewBox="0 0 640 512"><path fill="currentColor" d="M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"/></svg>'),this.addSettingTab(new Ra(this.app,this)),(0,Be.addIcon)(Xa,Fs),(0,Be.addIcon)(Za,Ls),this.bestiary=new Map([...Na,...this.data]),Object.defineProperty(window,"bestiary",{value:this.bestiary,writable:!1,configurable:!0}),this.registerMarkdownCodeBlockProcessor("statblock",this.postprocessor.bind(this)),this.registerEvent(this.app.workspace.on("dice-roller:unload",()=>{this.settings.useDice=!1}))}async loadSettings(){let a=await this.loadData();a!=null&&!("version"in a)?(this.settings={...mc},this.settings.monsters=a,await this.loadMonsterData(),new Be.Notice("5e Statblocks is now TTRPG Statblocks. Check out the ReadMe for more information!")):this.settings={...mc,...a};let n=this.manifest.version.split(".");this.settings.version={major:Number(n[0]),minor:Number(n[1]),patch:Number(n[2])}}async saveSettings(){this.settings.monsters=this._transformData(this.data),await this.saveData(this.settings)}async loadMonsterData(){let a=this.settings.monsters;a||(this.data=new Map),this.data=new Map(a?.map(([n,i])=>[n,(0,On.default)(i)])??[])}async saveMonster(a,n=!0,i=!0){!a.name||(this.data.set(a.name,a),this.bestiary.set(a.name,a),i&&await this.saveSettings(),n&&(this._sorted=la(Array.from(this.data.values())).asc(s=>s.name)))}async saveMonsters(a){for(let n of a)await this.saveMonster(n,!1,!1);this._sorted=la(Array.from(this.data.values())).asc(n=>n.name),await this.saveSettings()}async updateMonster(a,n){this.data.delete(a.name),await this.saveMonster(n)}async deleteMonsters(...a){for(let n of a)!this.data.has(n)||(this.data.delete(n),this.bestiary.delete(n));await this.saveSettings(),this._sorted=la(Array.from(this.data.values())).asc(n=>n.name)}async deleteMonster(a,n=!0,i=!0){!this.data.has(a)||(this.data.delete(a),this.bestiary.delete(a),Na.has(a)&&this.bestiary.set(a,Na.get(a)),i&&await this.saveSettings(),n&&(this._sorted=la(Array.from(this.data.values())).asc(s=>s.name)))}_transformData(a){return[...a??[]].map(([n,i])=>[n,(0,On.default)(i)])}onunload(){delete window.bestiary,this.watcher.unload(),console.log("TTRPG StatBlocks unloaded")}exportAsPng(a,n){function i(o){return!o.hasClass||!o.hasClass("clickable-icon")}let s=n.querySelector(".statblock-content");s&&delete s.style.boxShadow,hc.default.toPng(n,{filter:i,style:{height:"100%"}}).then(o=>{let r=document.createElement("a");r.download=a+".png",r.href=o,r.click(),r.detach()}).catch(o=>{new Be.Notice(`There was an error creating the image:
${o.message}`),console.error(o)})}parseForDice(a){let n=s=>{let o,r;if(/\w+ [\+\-]\d+/.test(s.trim())){let[,c,d,l]=s.match(/(\w+ )([\+\-])(\d+)/)??[],m=1;d==="-"&&(m=-1),isNaN(Number(l))||(o=`1d20+${m*Number(l)}`,r=`${c} ${d}${l}`)}else if(/[\+\-]\d+ to hit/.test(s.trim())){let[,c,d]=s.match(/([\+\-])(\d+)/)??[],l=1;c==="-"&&(l=-1),isNaN(Number(d))||(o=`1d20+${l*Number(d)}`,r=s)}else if(/\d+\s\(\d+d\d+(?:\s*[+\-]\s*\d+)?\)/.test(s.trim())){let[,c,d]=s.match(/(\d+)\s\((\d+d\d+(?:\s*[+\-]\s*\d+)?)\)/)??[];!isNaN(Number(c))&&d&&(o=d)}return{text:o,original:r}},i=s=>/\w+ [\+\-]\d+/.test(s.trim())||/[\+\-]\d+ to hit/.test(s.trim())||/\d+\s\(\d+d\d+(?:\s*[+\-]\s*\d+)?\)/.test(s.trim());return a.split(/([\+\-]\d+ to hit|\d+\s\(\d+d\d+(?:\s*[+\-]\s*\d+)?\)|\w+ [\+\-]\d+)/).map(s=>i(s)?n(s):s)}get defaultLayout(){return this.settings.layouts?.find(a=>a.name==this.settings.default)??Ve}async postprocessor(a,n,i){try{let s=(0,Be.parseYaml)(a);s=JSON.parse(JSON.stringify(s).replace(/\\#/g,"#"));let o=s&&"name"in s;if((!s||!Object.values(s??{}).length)&&(s=Object.assign({},s,{note:i.sourcePath})),s.note){let m=Array.isArray(s.note)?s.note.flat(1/0).pop():s.note,u=await this.app.metadataCache.getFirstLinkpathDest(`${m}`,i.sourcePath);if(u&&u instanceof Be.TFile){let h=await this.app.metadataCache.getFileCache(u);Object.assign(s,(0,On.default)(h.frontmatter)??{})}}let r=Object.assign({},this.bestiary.get(s.monster)??this.bestiary.get(s.creature));if(r){let m=Kt(r.traits??[],s.traits??[]),u=Kt(r.actions??[],s.actions??[]),h=Kt(r.bonus_actions??[],s.bonus_actions??[]),f=Kt(r.legendary_actions??[],s.legendary_actions??[]),b=Kt(r.reactions??[],s.reactions??[]);Object.assign(s,{traits:m,actions:u,bonus_actions:h,reactions:b,legendary_actions:f})}"image"in s&&Array.isArray(s.image)&&(s.image=s.image.flat(2).join(""));let c=Object.assign({},r??{},s??{}),d=this.settings.layouts.find(m=>m.name==c?.layout||m.name==c?.statblock)??this.defaultLayout;n.addClass("statblock-plugin-container"),n.parentElement?.addClass("statblock-plugin-parent");let l=new vt(n,c,this,o,i.sourcePath,d);i.addChild(l)}catch(s){console.error(`Obsidian Statblock Error:
${s}`),createEl("pre").setText(`\`\`\`statblock
There was an error rendering the statblock:
${s.stack.split(`
`).filter(r=>!/^at/.test(r?.trim())).join(`
`)}
\`\`\``)}}render(a,n,i){let s=Object.assign(this.bestiary.get(a.name)??{},{...a});return s?(i&&(s.name=i),new vt(n,s,this,!1,"",this.defaultLayout)):null}};