Furter rework on script hooks, simplifying required logic.
This commit is contained in:
@@ -139,3 +139,9 @@ bool Battling::Creature::HasType(uint8_t type) const {
|
||||
auto t = GetTypes();
|
||||
return std::find(t.begin(), t.end(), type) != t.end();
|
||||
}
|
||||
|
||||
void Battling::Creature::GetActiveScripts(Battling::ScriptAggregator &aggr) const {
|
||||
aggr.Add(_status);
|
||||
aggr.Add(&_volatile);
|
||||
_side->GetActiveScripts(aggr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user