exclude spout from dissolving

This commit is contained in:
O-01-67 2022-10-04 14:06:14 -04:00 committed by GitHub
parent 69c1200d90
commit 0d4b628ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ elements.alkahest = {
if(!isEmpty(checkPosX,checkPosY,true)) {
var newPixel = pixelMap[checkPosX][checkPosY];
var newElement = newPixel.element;
if(![pixel.element,"wall"].includes(newElement)) { //unless someone's willing to implement dragon parts
if(![pixel.element,"wall","alkahest_spout"].includes(newElement)) { //unless someone's willing to implement dragon parts
if(typeof(pixel[newElement]) === "undefined") {
pixel[newElement] = 0;
};