View Single Post
  #1  
Old 02-28-2011, 07:16 PM
blmille2
Sarnak
 
Join Date: Apr 2007
Location: Austin, TX
Posts: 64
Default Host of the Elements patch

This patch is to make the Host of the Elements AA look correct when cast.
No pet: Earth elemental
Otherwise: use the skin of the current pet.

Code:
Index: zone/AA.cpp
===================================================================
--- zone/AA.cpp (revision 1873)
+++ zone/AA.cpp (working copy)
@@ -583,6 +583,21 @@
                npc_type = made_npc;
        }

+       //Magician AA Host of the Elements -- Manbear (blmille2)
+       if(spell_id == 3286 || spell_id == 3287 || spell_id == 3288) {
+         made_npc = new NPCType;
+         memcpy(made_npc, npc_type, sizeof(NPCType));
+         if(GetPet()) {
+           made_npc->race = GetPet()->race;
+           made_npc->texture = GetPet()->texture;
+         } else {
+           //Defaults to Earth Elemental
+           made_npc->race = 75;
+           made_npc->texture = 0;
+         }
+         npc_type = made_npc;
+       }
+
        int summon_count = 0;
        summon_count = pet.count;
Reply With Quote