Jump to content

Incorrect filling targets for TARGET_RANDOM_NEARBY_DEST


SeT

Recommended Posts

Target type TARGET_RANDOM_NEARBY_DEST has SpellTargets = SPELL_TARGETS_ALL.

FillAreaTargets(targetUnitMap, radius, PUSH_DEST_CENTER, SPELL_TARGETS_ALL);

Because of what the list of targets get absolutely all units within range (including the dead).

How is this reflected in the world:

Suppose we cast some spell summon - (70372 Summon Shambling Horror) in completing the list of targets, go get all units (including the dead) and then for each object is the effect of the spell(summon), as a result we get is not a one monster, but as many units the list of targets.

Link to comment
Share on other sites

then probably the spell you are talking about must use unMaxTargets in spell.cpp

A lot of spells have the effect of SPELL_EFFECT_SUMMON and target type TARGET_RANDOM_NEARBY_DEST. Each from spell will need to use unMaxTarget?

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use