rely on stringification instead of state reports
This commit is contained in:
@@ -38,6 +38,9 @@ export default class Ability {
|
||||
effect: function straightShotEffect(caster, cursor) {
|
||||
const ability = this
|
||||
const straightShotCollision = function straightShotCollision(projectile, collidingEntity) {
|
||||
if (collidingEntity == null) { return }
|
||||
if (collidingEntity.team == (projectile.owner?.team ?? 'unknown')) { return }
|
||||
|
||||
collidingEntity.damage(ability.damage)
|
||||
projectile.despawn()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user