Bug 499

Summary: Error in isSwappableExist() with prop in Map.java
Product: CandyCrush 2020 Reporter: ziruichen6-c
Component: Source CodeAssignee: jli262-c
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 1.0   
Hardware: PC   
OS: Windows   

Description ziruichen6-c 2020-11-29 11:27:54 HKT
The bug was found when running the Junit Test. The Map which filled with prop would return false.

Steps to Reproduce:
Run testPropExist() in TestMap.java

Actual Results: testPropExist() in TestMap.java failures.

Expected Results: testPropExist() in TestMap.java pass the Junit Test.
Comment 1 ziruichen6-c 2020-11-29 11:34:23 HKT
The situation with the prop was not considered in isSwapExist(). Generally speaking, the map with prop exists should not be considered as a dead map.

The solution would be adding the condition of props in isSwapExist().
result |= (itemArray[i][j].execute() > 0)