При открывании лута - должен сниматься стелс.
PHP код:
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 27f848c..b6c853f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -8109,6 +8109,14 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
if (loot_type == LOOT_CORPSE && !guid.IsItem())
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_LOOTING);
+
+ // Removes Stealth for Loot
+ RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH);
+
+ WorldPacket data2(SMSG_LOOT_LIST, 0);
+ GetSession()->SendPacket(&data2);
+
+ DEBUG_LOG("WORLD: Sent SMSG_LOOT_LIST");
}
void Player::SendNotifyLootMoneyRemoved()
Хотелось бы узнать, правильно ли это ?