• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Solved] If an unit is killed by artillary (explode) it drops "undropable" item

Level 12
Joined
Oct 28, 2019
Messages
480
If an unit is killed by artillary (explode) it drops "undropable" item

If anyone knows my myth map, units has bounty, its a item that it gains if the unit kills a unit, it cant be dropped, sell etc... all assets in Object editor are right.

But a problem or a bug is happening, if the unit is killed by explosion artilhary the item drops in the ground, im trying making a trigger to remove this item.

Other solution is change "to can´t raise does not decay" this solve the problem, but the corpse is removed from the battleground, and I want it remais there

So this is the trigger Im trying doing
  • Loses Bounty
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 3
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 4
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 5
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 1
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 2
    • Actions
      • Item - Remove (Last dropped item)
any help will be welcome
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,583
If an unit is killed by artillary (explode) it drops "undropable" item
Use (Item being manipulated) not (Last dropped item).
1705625533480.png

See the tip at the bottom "When responding to...", it explains which Event it's used with.
 
Top