PDA

View Full Version : Pet fix to allow them to cast/proc spells.


killspree
05-03-2003, 02:49 AM
In spells.cpp line 3959 you'll see:
npc_type->level = in_level;
npc_type->race = in_race;
npc_type->class_ = in_class;
npc_type->texture = in_texture;
npc_type->helmtexture = in_texture;
npc_type->runspeed = 1.25f;
npc_type->walkspeed = 0.7f;
npc_type->size = in_size;

Change to:
npc_type->level = in_level;
npc_type->race = in_race;
npc_type->class_ = in_class;
npc_type->texture = in_texture;
npc_type->helmtexture = in_texture;
npc_type->runspeed = 1.25f;
npc_type->walkspeed = 0.7f;
npc_type->size = in_size;
npc_type->npc_spells_id = this->GetNPCSpellsID();

This allows spell entries to be added to pets through the database using the new npc_spells format.