1
This commit is contained in:
parent
f58677afb9
commit
8154ee7235
@ -417,6 +417,7 @@ void Car::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
|
|||||||
meta->i->atk()
|
meta->i->atk()
|
||||||
);
|
);
|
||||||
room->NotifyUiUpdate();
|
room->NotifyUiUpdate();
|
||||||
|
GetTrigger()->Die();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Car::GetAabbBox(AabbCollider& aabb_box)
|
void Car::GetAabbBox(AabbCollider& aabb_box)
|
||||||
|
@ -278,6 +278,7 @@ void Hero::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
&xtimer_attacher.timer_list_);
|
&xtimer_attacher.timer_list_);
|
||||||
|
GetTrigger()->Die();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hero::OnAddToTargetPartObject(Entity* target)
|
void Hero::OnAddToTargetPartObject(Entity* target)
|
||||||
|
@ -192,6 +192,20 @@ void Trigger::ReceiveDmg()
|
|||||||
|
|
||||||
void Trigger::Die()
|
void Trigger::Die()
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
std::vector<int> list;
|
||||||
|
owner_->TraverseBuff
|
||||||
|
(
|
||||||
|
[&list] (Buff* buff, bool& stop)
|
||||||
|
{
|
||||||
|
if (buff->meta->i->dead_remove()) {
|
||||||
|
list.push_back(buff->buff_uniid);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
for (int buff_uniid : list) {
|
||||||
|
owner_->RemoveBuffByUniId(buff_uniid);
|
||||||
|
}
|
||||||
|
}
|
||||||
TriggeCondBuffAll(kCondBuffDid);
|
TriggeCondBuffAll(kCondBuffDid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,6 +293,7 @@ message Buff
|
|||||||
optional int32 post_battle_valid = 26;
|
optional int32 post_battle_valid = 26;
|
||||||
optional string only_spec_race = 27;
|
optional string only_spec_race = 27;
|
||||||
optional string exclude_spec_race = 28;
|
optional string exclude_spec_race = 28;
|
||||||
|
optional int32 dead_remove = 29;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Drop
|
message Drop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user