Fixes alot of little errors.

This commit is contained in:
hondacrx
2024-03-15 15:54:45 -04:00
parent b721aee6e5
commit 88f24c7791
11 changed files with 29 additions and 26 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ namespace Game
continue;
}
if (creature.IsWithinDistInMap(player, AELootCreatureCheck.LootDistance))
if (!creature.IsWithinDistInMap(player, AELootCreatureCheck.LootDistance))
{
player.SendLootError(req.Object, lguid, LootError.TooFar);
continue;
@@ -359,7 +359,7 @@ namespace Game
creature.RemoveDynamicFlag(UnitDynFlags.Lootable);
// skip pickpocketing loot for speed, skinning timer reduction is no-op in fact
if (creature.IsAlive())
if (!creature.IsAlive())
creature.AllLootRemovedFromCorpse();
}
}