Fixes for bug wherein illusions other than PC races could be exploited.

Fixed for areas that neglected to take into account alliance and item faction
bonuses.
This commit is contained in:
Noudess
2019-02-07 14:48:31 -05:00
parent 46ead8e29e
commit ad97968d5e
6 changed files with 28 additions and 11 deletions
+1 -1
View File
@@ -2845,7 +2845,7 @@ uint8 QuestManager::FactionValue()
FACTION_VALUE oldfac;
uint8 newfac = 0;
if(initiator && owner->IsNPC()) {
oldfac = initiator->GetFactionLevel(initiator->GetID(), owner->GetID(), initiator->GetRace(), initiator->GetClass(), initiator->GetDeity(), owner->GetPrimaryFaction(), owner);
oldfac = initiator->GetFactionLevel(initiator->GetID(), owner->GetID(), initiator->GetFactionRace(), initiator->GetClass(), initiator->GetDeity(), owner->GetPrimaryFaction(), owner);
// now, reorder the faction to have it make sense (higher values are better)
switch (oldfac) {