CanaryModTeam / CanaryLib

The CanaryMod API Library
http://canarymod.net
28 stars 22 forks source link

DamageHook versus ProjectileHitHook #47

Closed bastetfurry closed 9 years ago

bastetfurry commented 9 years ago

DamageHook can not tell when an entity takes damage by an arrow whereas ProjectileHitHook can tell this, the problem here is that ProjectileHitHook can not tell the plugin who fired the arrow whereas DamageHook could. Either add full attacker info into ProjectileHitHook or remove it and add arrow handling to DamageHook, where it should have been from the start. :)

svdragster commented 9 years ago

You can do getOwner() on the projectile

bastetfurry commented 9 years ago

Thanks. :)