Bernd Lörwald
Bernd Lörwald
`[self.ability(nonexistent).duration>1] --> [self.ability(nonexistent).exists & ...duration>1] --> true & ('inf' > 1)` isn’t what is happening. `[self.ability(nonexistent).duration>1] --> 'inf' > 1`. `[self.ability(nonexistent).exists & self.ability(nonexistent).duration>1] --> FALSE & ('inf' > 1)`. i...
> What would be the effort involved in .can_explode == .can_explode() == .can_explode(40) ? > I see you mentioned it isn't easy so I will have a think about this....
```markdown ### `hp.can_explode_pct` If the damage from a pet self-destructing would kill the opponent. **Return**: `bool` **Examples**: `self.hp.can_explode_pct(16)` (Can the explode damage of the current player pet kill the enemy...
After trying this again, it seems that I did a bad PR here. This adds `hp(15).can_explode`, not `hp.can_explode(15)` and from reading my comment again, it seems the latter isn't possible...
> I noticed that the condition needs an opts.pet = false. It's always the active pets that are affected. It actually always is the selected pet vs the opponent active...
> Technically it works. but this can lead to unexpected behavior. here is an example:  To me it makes sense to be restrictive in this case and only allow...
Please keep in mind that even if it is "just" strategies, the creators still have some form of ownership/copyright and freely distributing them without their permission is questionable.
Note that technically this is undefined behaviour now. There is a reason it was a lambda with an `unsigned char`, which is that subtle note in https://en.cppreference.com/w/cpp/string/byte/tolower. `std::tolower()` is locale-aware,...
I did a small benchmark to verify my assumptions. To do that, I took the latest [community-listfile.csv](https://github.com/wowdev/wow-listfile/releases/tag/202504281532) `| cut -f 2 -d ';' | tr -d '\r' | shuf`, then...
As expected, msvc is horrible with autovec. Two+transform is 5s, one op shaves off a 400ms, avoiding locale tolower takes of a big chunk, down to 1.5s for one and...