Closed Pattentrick closed 10 years ago
Should the check be for the ability's faceTarget property instead of the entity's?
There is no faceTarget
property on the entity, we want to check the property of the ability, so it should be:
javascript
if (this.faceTarget){
this.entity.lookAt(projectile);
}
Am I right? This was another dumb typo from me. Sorry for the mistake. Doing to many things simultaneously right now. I will correct this once I am back home. Please correct me if I am totally wrong on this ;-)
No worries man, I think that looks right. Thanks for submitting the fix :-)
Added a check for the faceTarget property of the shoot ability, to fix some unwanted animation behavior (issue #145).