mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
fix: fix crash in CanCompleteRepeatableQuest / CanRewardQuest
This commit is contained in:
@@ -486,7 +486,7 @@ namespace LuaPlayer
|
||||
if (!quest)
|
||||
{
|
||||
Eluna::Push(L, false);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Eluna::Push(L, player->CanCompleteRepeatableQuest(quest));
|
||||
@@ -506,7 +506,7 @@ namespace LuaPlayer
|
||||
if (!quest)
|
||||
{
|
||||
Eluna::Push(L, false);
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Eluna::Push(L, player->CanRewardQuest(quest, true)); // Modify the second argument as needed
|
||||
|
||||
Reference in New Issue
Block a user