lare96 / asteria-3.0

An open source Runescape server designed to emulate the #317 protocol. This is no longer being developed.
GNU General Public License v3.0
41 stars 20 forks source link

Nullpointer when you teleport someone to yourself. #28

Open Stand-up opened 9 years ago

Stand-up commented 9 years ago

Have 2 clients open, and teleport the second client to yourself using the teletome command.

http://prntscr.com/85f5qm http://prntscr.com/85f8ug

The fix is

    if(builder.getStrategy() == null) {
        return false;
    }

inside Combat#CheckAttackDistance

lare96 commented 9 years ago

Thanks for this