mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Change Older clients to not use persistant taunt button & default to taunt on.
This commit is contained in:
+12
-1
@@ -433,7 +433,18 @@ Pet::Pet(NPCType *type_data, Mob *owner, PetType type, uint16 spell_id, int16 po
|
||||
petpower = power;
|
||||
SetOwnerID(owner->GetID());
|
||||
SetPetSpellID(spell_id);
|
||||
taunting = false;
|
||||
|
||||
bool non_persistant_pet_states_client = false;
|
||||
|
||||
// Deault to on in older clients, off in new clients that control state.
|
||||
if (owner && owner->IsClient()) {
|
||||
if (!(owner->CastToClient()->ClientVersionBit() & EQ::versions::maskUFAndLater)) {
|
||||
LogError("Titanium");
|
||||
non_persistant_pet_states_client = true;
|
||||
}
|
||||
|
||||
taunting = non_persistant_pet_states_client;
|
||||
}
|
||||
|
||||
// Class should use npc constructor to set light properties
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user