Core/Quests: Implemented QUEST_FLAGS_EX_SUPPRESS_GOSSIP_COMPLETE
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user