self targeting fix
This commit is contained in:
@@ -234,8 +234,10 @@ class CombatSkills extends Phaser.Scene {
|
||||
const skillPos = targetTextPosition(iter, team);
|
||||
const skillObj = new CrypSkill(this, skillPos[0], skillPos[1], skill, cryp);
|
||||
this.add.existing(skillObj);
|
||||
|
||||
// Don't add interaction for self_target skills
|
||||
if (skill.self_targeting) {
|
||||
const crypSkill = cryp.skills.find(s => s.skill === skill.skill);
|
||||
if (crypSkill.self_targeting) {
|
||||
skillObj.skillBox.setFillStyle(0x9d9ea0);
|
||||
} else {
|
||||
this.input.setDraggable(skillObj);
|
||||
|
||||
Reference in New Issue
Block a user