You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hasErr = false seems like a cheat code for the reason of testing or getting PvE feature live quickly. @aLIEzsss4
And we did lack of careful review. Our bad.
This function has problems as @fenghaoming said. Besides, obviously the inner checking of position should be if (cor == Coord.compose(hero.x, hero.y)).
I have some questions about this function and don't know if I understand it correctly.
There is no 'return' branch to distinguish 'right' and 'wrong'. So the result of it will be always 'hasErr = false'.
The require sentence will lead to transaction failure.
The condition 'cor != Coord.compose(hero.x, hero.y' will be achieved at least one time, once if player have more than 2 heroes.
The text was updated successfully, but these errors were encountered: