- added DavidPH's DOHARMSPECIES submission.

SVN r3236 (trunk)
This commit is contained in:
Christoph Oelckers 2011-06-13 10:43:07 +00:00
commit e4455c293f
3 changed files with 3 additions and 1 deletions

View file

@ -1074,7 +1074,7 @@ bool PIT_CheckThing (AActor *thing, FCheckPosition &tm)
// [RH] Don't hurt monsters that hate the same thing as you do
return false;
}
if (thing->GetSpecies() == tm.thing->target->GetSpecies())
if (thing->GetSpecies() == tm.thing->target->GetSpecies() && !(thing->flags6 & MF6_DOHARMSPECIES))
{
// Don't hurt same species or any relative -
// but only if the target isn't one's hostile.