View Full Version : Target Type 20.
Kingly_Krab
01-19-2014, 12:21 PM
Target Type is supposed to be AoE Lifetap, but it isn't, and it doesn't work.
Here's a picture of it actually in the PHP Editor.
http://i.imgur.com/h2ZzzIu.png
And here's a picture of what happens when I cast a spell with it, this is a default spell, id 8438 (Immortal Bonds).
http://i.imgur.com/UiOE3GQ.png
demonstar55
01-19-2014, 09:16 PM
Not all of the target types are implemented, this is one of them.
Edit: you can try adding
case ST_TargetAETap:
On line 1547 in zone/spells.cpp and see how it works ...
Kingly_Krab
01-21-2014, 04:22 AM
I did that and it still says that it doesn't know the target type. My code is below.
case ST_UndeadAE: //should only affect undead...
case ST_AETarget:
case ST_TargetAETap:
{
if(!spell_target)
{
mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target (AOE)", spell_id);
Message_StringID(13,SPELL_NEED_TAR);
return false;
}
ae_center = spell_target;
CastAction = AETarget;
break;
}
sorvani
01-21-2014, 03:28 PM
You need to break; after ST_AETarget: unless you actually want all three of those cases to apply to TargetAETap.
Not your issue with getting unknown target type but would be an issue.
I did that and it still says that it doesn't know the target type. My code is below.
case ST_UndeadAE: //should only affect undead...
case ST_AETarget:
case ST_TargetAETap:
{
if(!spell_target)
{
mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target (AOE)", spell_id);
Message_StringID(13,SPELL_NEED_TAR);
return false;
}
ae_center = spell_target;
CastAction = AETarget;
break;
}
demonstar55
01-21-2014, 03:51 PM
I pushed it, it should work, at least it worked for me with those changes :P
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.