#563 LuaInterface::GetCurrentSpell

오픈
image1 개월 전을 오픈 · 0개의 코멘트
image 코멘트됨, 1 개월 전

GetCurrentSpell is used in a number of LUA functions to map out the luaspell the lua_state belongs to.. Unfortunately it is not reliable as it looks like SpawnScripts somehow map a state the same as a luaspell (that does not exist or was deleted). Need to keep this in mind when we have crashes on SetMaxHP or similar lua functions that allow usage in a spell (addspellbonus) and spawn script.. The AddSpellBonus is the cause of the crash because the spell is invalid.

GetCurrentSpell is used in a number of LUA functions to map out the luaspell the lua_state belongs to.. Unfortunately it is not reliable as it looks like SpawnScripts somehow map a state the same as a luaspell (that does not exist or was deleted). Need to keep this in mind when we have crashes on SetMaxHP or similar lua functions that allow usage in a spell (addspellbonus) and spawn script.. The AddSpellBonus is the cause of the crash because the spell is invalid.
로그인하여 이 대화에 참여
로딩중...
취소
저장
아직 콘텐츠가 없습니다.