PDA

View Full Version : Beastlord Epic 2.0 target type 38


Shin Noir
10-16-2009, 03:55 AM
Seems that when you utilize beastlord epic, you get this error:
I dont know Target Type: 38 Spell: (6278) Might of the Wild Spirits
If you look at lucy raw data (http://lucy.allakhazam.com/spellraw.html?id=6278&source=Live), you'll see it says targettype: Summoned Pet. This target type isn't supported in source.

Spell casts fine on target, however.
I'm guessing this target type allows you to target ANY summoned pet, and not just your own?

Until I know the target's possibilities, here's an easy temp fix to make this target type act like the typical pet only target effect found on stuff like burnout 2 (http://lucy.allakhazam.com/spellraw.html?id=106&source=Live).


Index: zone/spdat.h
================================================== =================
--- zone/spdat.h (revision 1014)
+++ zone/spdat.h (working copy)
@@ -89,6 +89,7 @@
ST_UndeadAE = 0x18,
ST_LDoNChest_Cursed = 0x22,
ST_GroupClient = 0x2b,
+ ST_SumPet = 0x26, //Shin: Used on BST's effect spellID 6278. Needs fixing.
} SpellTargetType;

typedef enum {
Index: zone/spells.cpp
================================================== =================
--- zone/spells.cpp (revision 1014)
+++ zone/spells.cpp (working copy)
@@ -1259,6 +1259,7 @@
CastAction = SingleTarget;
break;
}
+ case ST_SumPet:
case ST_Pet:
{
spell_target = GetPet();

Code will likely read a quick condition check on if the target is a pet or not in order to successfully cast if it's as it implies, which should be easy to write! :)