Core/Quests: Implemented QUEST_FLAGS_EX_SUPPRESS_GOSSIP_COMPLETE

This commit is contained in:
luis
2026-11-18 12:13:32 -03:00
parent 27194d2291
commit d6a7b38c6c
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -18120,7 +18120,7 @@ void Player::SendQuestReward(Quest const* quest, Creature const* questGiver, uin
if (Quest const* rewardQuest = GetNextQuest(questGiver, quest))
packet.UseQuestReward = CanTakeQuest(rewardQuest, false);
if (questGiver->IsQuestGiver())
if (questGiver->IsQuestGiver() && !quest->HasFlagEx(QUEST_FLAGS_EX_SUPPRESS_GOSSIP_COMPLETE))
packet.LaunchQuest = !packet.UseQuestReward && (GetQuestDialogStatus(questGiver) & ~QuestGiverStatusFutureMask) != QuestGiverStatus::None;
}
+4
View File
@@ -6587,6 +6587,10 @@ SpellCastResult Spell::CheckCast(bool strict, int32* param1 /*= nullptr*/, int32
if (target->HasSummonPending())
return SPELL_FAILED_SUMMON_PENDING;
for (AreaTableEntry const* area = sAreaTableStore.LookupEntry(m_caster->GetAreaId()); area; area = sAreaTableStore.LookupEntry(area->ParentAreaID))
if (area->GetFlags().HasFlag(AreaFlags::NoPlayerSummoning))
return SPELL_FAILED_NOT_HERE;
// check if our map is dungeon
if (InstanceMap const* map = m_caster->GetMap()->ToInstanceMap())
{