Hacker News new | ask | show | jobs
by anonymoushn 4363 days ago
Does this implement the many completely undocumented corners of the game correctly?

Some examples: http://www.reddit.com/r/hearthstone/comments/24tvce/unwritte...

Some examples from personal experience: Ongoing effects last until a player could act, not until the minion causing them leaves the battlefield. So if you trade your 2/3 harvest golem for your opponent's 6/2 stormwind commander, they both die, you get a 2/1 damaged golem, and your knife juggler throws a knife at your opponent's wisp, the wisp will take 1 damage, go down to 2/1, then lose the buff from stormwind commander (who died a long time ago!) and go down to 1/1.

If you have a young priestess and a 1/1 imp master, your imp master can kill itself and your young priestess can target your dead imp master with her buff. This will not bring the imp master back to life, you just miss out on your buff for the turn.

2 comments

I was confused for a moment on what you meant, but I believe you were referring to the 'Stormwind Champion'.

In the future Naxx release, they will implement a queue to keep track of the timestamp that each creature enters the board. All effect that triggers/depletes from a 'mass death' will take place in the order of each card's timestamp, earliest first.

So for the 2nd example, it depends on which creature came into play first. If Young Priestess, then Imp Master doesn't lose health and you get a 1/1 imp. If Imp Master first, then Imp is spawned and gets buffed but the master dies.

Whoops!

I am not sure if this will fix young priestess thing - the issue is that the young priestess chooses its target before the imp master uses its ability, but uses its ability after the imp master does.

Most definitely... not. Well, since Harvest Golem is not yet implemented, the subtle nuances are beyond the scope anyways. It's something I will have to go through to get it right in due course.

Having said that, the focus (of my curiosity) is in AI modeling at a broader (higher?) level, so I think will be concentrating on that aspect for now.