うまく説明できるかどうか分かりませんが、よろしくお願いします。
内容ですが、件名の通りで、自分はプラグインに関しては、ほぼ無知なので
どうにか解決できないかと悩んでおりました。
競合対象は、ひきもき様のカードバトルプラグインと、kamesoft様のマテリアシステムです。
エラーを吐くタイミングは、マテリアを所持している状態で、カードのデッキを編集する時です。
エラーメッセージは 「Cannot read property 'cardCost' of undefined」です。
スタックとレースは
TypeError: Cannot read property 'cardCost' of undefined
at Window_DeckEditItem.includes
(file:///C:/Users/xxx/Desktop/project2/js/plugins/TMcard.js
at Window_DeckEditItem.<anonymous>
(file:///C:/Users/xxx/Desktop/project2/js/plugins/KMS_AbilityOrb.js
at Array.filter (native)
at Window_DeckEditItem.Window_ItemList.makeItemList
(file:///C:/Users/xxx/Desktop/project2/js/plugins/KMS_AbilityOrb.js
at Window_DeckEditItem.Window_ItemList.refresh
(file:///C:/Users/xxx/Desktop/project2/js/rpg windows.js
at Window_DeckEditItem.setSlotId
(file:///C:/Users/xxx/Desktop/project2/js/plugins/TMcard.js
at file:///C:/Users/xxx/Desktop/project2/js/rpg core.js:6525:19
at Array.forEach (native)
at WindowLayer.update (file:///C:/Users/xxx/Desktop/project2/js/rpg core.js:6523:19)
SceneManager.catchException rpg managers.js:1756
要望は、この2つのプラグインを両方使いたいだけです。
よろしくお願いします。