TrinityCore/TrinityCore — pull request #13619 by pete318 (2014-11-23 20:22:38+00:00)
Title: Quest A Spirit Guide (Issue 4028)

Cleaned up replacement to the PR https://github.com/TrinityCore/TrinityCore/pull/13590

Included core change to Player.cpp. Removed check for "IsHostileTo" because this calls GetReactionTo:

```C++
bool Unit::IsHostileTo(Unit const* unit) const
{
return GetReactionTo(unit) <= REP_HOSTILE;
}
```

So, checking for <= REP_UNFRIENDLY and returning NULL if not, includes this check. So it'd be overkill to do both.

The change to retrieve faction from the GetReactionTo rather than use the faction template has a small chance to cause a problem. But, I couldn't myself find an instance where it would.

Otherwise it's all as per the previous PR.

Breakdown of changes from THIS pull request:

- Ensures rep adjustment buff is always applied (overrides evade, implements existing evade + re-apply buff)
- Removes un-owned ravagers with incorrect faction from DB (the correct ones are spawned with their masters without the DB entries)
- Create some extra steps in the wolf's waypoints in order to generate some AI events for the Ryga NPC. I think it's a bit of a dirty solution, but it seems to work with minimal changes.
- Created RP series of events with Ryga NPC and Ancestral Wolf Spirit (Ryga Kneels, talks to wolf, then returns to spawn position after around a minute).