Homeslice
-anoyn/Rage the Mage
I'm trying to make the spell not change directions when the player moves left. The spell does not move along with the caster, it just changes directions.
Here is what I'm using:
This is the area in use
Code:
{
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 2, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
},
Combat:
Lua:
combatEffects_explosiveReaction[i] = Combat()
combatEffects_explosiveReaction[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
combatEffects_explosiveReaction[i]:setArea(createCombatArea(AREA_SQUARE3X3_EXPLOSIVE_REACTIONS[i]))
combatEffects_explosiveReaction[i]:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
Spells.xml
Lua:
<instant group="attack" spellid="172" name="Explosive Reaction" words="explosive reaction" lvl="1" mana="10" prem="1" selftarget="0" direction="0" cooldown="1000" groupcooldown="4000" needlearn="0" script="custom/explosive_reaction.lua">
<vocation name="Druid" />
<vocation name="Elder Druid" />
</instant>
Is there a way to fix this while still using Combat()?
I'd prefer not to use position:sendMagicEffect(), since I don't know a efficient way to check if there is a wall blocking between the effect and caster.