// allowVerbOnce.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Asset.prototype;
/**
* <strong>allowVerbOnce</strong> is a method to check whether
* this asset is subscribed to allow the specified verb to act on it
* as only once.
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#allowVerbOnce
* @param {String} verb The name of a verb.
* @param {String} ov Direct or indirect object of verb.
* @returns {Boolean}
*/
p.allowVerbOnce = function Asset_allowVerbOnce(verb, ov) {
if (!ov || (ov !== "dov" && ov !== "iov")) ov = "dov";
if (!verb || !this.game.dictionary.verbs[verb]) return false;
if (!this[ov][verb]?.enabled) return false;
return this[ov][verb].once;
};
})();