Making Snails shoot. Poison.
Posted: Sun Jun 29, 2014 11:22 pm
Using other, older threads around here I was able to get my snails to shoot a projectile.
However, the projectile does not seem to trigger an onDealDamage check.
I'm hesitant to use the onProjectileHit hook for the party, as it seems I would have to tie the poison affliction level to the damage of the projectile, which may not really be an issue, but I'd like to have it based on the enemy throwing the projectile instead.
The code in quesiton should just involve these I believe.
However, the projectile does not seem to trigger an onDealDamage check.
I'm hesitant to use the onProjectileHit hook for the party, as it seems I would have to tie the poison affliction level to the damage of the projectile, which may not really be an issue, but I'd like to have it based on the enemy throwing the projectile instead.
The code in quesiton should just involve these I believe.
Code: Select all
rangedAttack = "poison_bolt",
defineAnimationEvent{
animation = "mod_assets/animations/poison_snail/poison_snail_attack.fbx",
event = "ranged_attack",
frame = 10,
},
onDealDamage = function(self, champion, damage)
--champion:setConditionCumulative("poison", 7)
print ("hit")
end,