Water work and work with grids (still not perfect but i think its the ai code)

This commit is contained in:
KimLS committed 2018-10-18 20:44:46 -07:00
1 parent f76fffe622
commit 973abef1b0
6 files changed
+100 -50

No files matched your search

-6
View File
@@ -2667,12 +2667,6 @@ void Mob::AddToHateList(Mob* other, uint32 hate /*= 0*/, int32 damage /*= 0*/, b
}
}
}
if (IsNPC() && CastToNPC()->IsUnderwaterOnly() && zone->HasWaterMap()) {
if (!zone->watermap->InLiquid(glm::vec3(other->GetPosition()))) {
return;
}
}
// first add self
// The damage on the hate list is used to award XP to the killer. This check is to prevent Killstealing.