Update core.lua

Add target parameter to IsSpellInRange call for spell.range condition